Heikki Turunen <hesekki@luukkku.krr.invalid> writes:
Lowell Gilbert wrote:>
It looks good to me; in fact, it works for me.> >
But not for me. Something is broken or missing and I have no ideas.>
Note that devfs.conf is normally only executed at boot time.> > If you want to use its changes without rebooting, execute /etc/rc.d/devfs.>
localhost/heikki su -> Password:> localhost# /etc/rc.d/devfs restart> localhost# ls -l /dev/xpt0> crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0> localhost# /etc/rc.d/devfs stop> localhost# /etc/rc.d/devfs start> localhost# ls -l /dev/xpt0> crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0> localhost/heikki sudo chmod 0666 /dev/xpt0> Password:> localhost/heikki ls -l /dev/xpt0> crw-rw-rw- 1 root operator 227, 0 31 Tou 23:21 /dev/xpt0> localhost/heikki>
I'm totally confused...
I took *exactly* the lines from your earlier message, made them the *only* lines in my devfs.conf, and (once I removed the "own" line, which gave errors because comments aren't supported on the end of the line), got the results you were looking for.
Please post your exact devfs.conf file; you're probably right that it has some sort of error. However, what you posted earlier obviously isn't what you're actually using, so I have no idea what the problem is.
Lowell Gilbert wrote:> Heikki Turunen <hesekki@luukkku.krr.invalid> writes:>
Lowell Gilbert wrote:>>
It looks good to me; in fact, it works for me.>>>
But not for me. Something is broken or missing and I have no ideas.>>
Note that devfs.conf is normally only executed at boot time.>>>If you want to use its changes without rebooting, execute /etc/rc.d/devfs.>>
localhost/heikki:$ su ->>Password:>>localhost# /etc/rc.d/devfs restart>>localhost# ls -l /dev/xpt0>>crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0>>localhost# /etc/rc.d/devfs stop>>localhost# /etc/rc.d/devfs start>>localhost# ls -l /dev/xpt0>>crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0>>localhost/heikki sudo chmod 0666 /dev/xpt0>>Password:>>localhost/heikki:$ ls -l /dev/xpt0>>crw-rw-rw- 1 root operator 227, 0 31 Tou 23:21 /dev/xpt0>>localhost/heikki>>
I'm totally confused...>
I took *exactly* the lines from your earlier message, made them the> *only* lines in my devfs.conf, and (once I removed the "own" line,> which gave errors because comments aren't supported on the end of the> line), got the results you were looking for.>
Please post your exact devfs.conf file; you're probably right that it> has some sort of error. However, what you posted earlier obviously> isn't what you're actually using, so I have no idea what the problem> is. >
My whole devfs.conf
# # Examples:
# Historically X depended on this, but version 4.3.0 doesn't seem to anymore #linkttyv0vga
# Commonly used by many ports #linkacd0cdrom
# Allow a user in the wheel group to query the smb0 device #permsmb00660
# Allow members of group operator to cat things to the speaker #ownspeakerroot:operator #permspeaker0660
# Levykeasema operator-ryhmälle luku- ja kirjoitusoikeudet own /dev/fd0 root:operator perm /dev/fd0 0666
Tuesday 31 May 2005 20:55 Heikki Turunen wrote in comp.unix.bsd.freebsd.misc:
Heikki Turunen wrote:>
Why? I can burn cd/dvd when I give command 'sudo chmod 0666>> /dev/xpt0'. Is there something wrong in my devfs.conf file?>>
/etc/group>
operator:5:root,heikki
You probably already got the answer to your question from mr. Gilbert, but if it's only users in the operator group who need control over the xpt device, then make it "perm xpt0 0660". That way it's a bit more secure. I thinks it's too much to allow all processes and users read/write access to the CAM subsystem. Maybe You should not even keep user "heikki" in the operator group (if the burner is the only reason), but chgrp xpt0 and the appropriate pass[0-9]+ & cd[0-9]+ to wheel? That's how I enabled the DVD-burner (with cdrecord and atapicam) for the wheel group. Please correct me if I'm wrong, though -- marko [dot] vihoma [at] dnainternet [dot] net BOFH excuse #388:
I took *exactly* the lines from your earlier message, made them the> *only* lines in my devfs.conf, and (once I removed the "own" line,> which gave errors because comments aren't supported on the end of the> line), got the results you were looking for.>
Please post your exact devfs.conf file; you're probably right that it> has some sort of error. However, what you posted earlier obviously> isn't what you're actually using, so I have no idea what the problem> is. >