Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2007 13:53:47 -0400
From:      "Jim Stapleton" <stapleton.41@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   /etc/devfs.conf not working properly
Message-ID:  <80f4f2b20705151053n8c87790td21ab8fb8a3f4b24@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
I have my /etc/devfs.conf file set to make some of my files
mountable/readable directly for normal users (specifically CD/DVD
devices). However, the original permissions are being retained. Am I
doing something wrong in the setup? (I have rebooted the machine since
these entries were created)


devfs.conf:
========================================
link    acd0    cdrom
link    acd0    dvd

link    acd0    dvd0
link    acd1    dvd1

link    acd0    cdrom0
link    acd1    cdrom1

own     acd0    root:operator
own     acd1    root:operator
own     dvd     root:operator
own     cdrom   root:operator
own     dvd0    root:operator
own     dvd1    root:operator
own     cdrom0  root:operator
own     cdrom1  root:operator

perm    acd0    0770
perm    acd1    0770
perm    dvd     0770
perm    cdrom   0770
perm    dvd0    0770
perm    dvd1    0770
perm    cdrom0  0770
perm    cdrom0  0770



#memory disks
own     mdctl   root:operator
perm    mdctl   770


# Allow a user in the wheel group to query the smb0 device
#perm   smb0    0660

# Allow members of group operator to cat things to the speaker
#own    speaker root:operator
#perm   speaker 0660
========================================


the majority of the relevant files look like this:
========================================
sjss@elrond 13:50:52 (0) /etc  > ls -l /dev | grep dvd
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd0 -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd1 -> acd1
sjss@elrond 13:51:03 (0) /etc  > ls -l /dev | grep cd
crwxrwx---  1 root  operator    0,  89 May 10 05:31 acd0
crwxrwx---  1 root  operator    0,  90 May 10 05:31 acd1
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 cdrom -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 cdrom0 -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 cdrom1 -> acd1
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd0 -> acd0
lrwxr-xr-x  1 root  wheel            4 May 10 05:32 dvd1 -> acd1
========================================


Their permssions are not correct at all, except for acd0/acd1. Any
suggestions on what would cause this one?

Thank you,
-Jim Stapleton



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?80f4f2b20705151053n8c87790td21ab8fb8a3f4b24>