The 03.06.16 at 21:24, Anders Johansson wrote:
If there are other users and you want to restrict access to the drives, you could do something like creating a group called cdrecord, and then
chown root.cdrecord /dev/sg0 chown root.cdrecord /dev/sg1 chmod 660 /dev/sg0 chmod 660 /dev/sg1
Notice that those permissions might not be permanent. There is a file: "/etc/logindevperm" that contains lines like these: :0 0600 /dev/cdrom:/dev/cdrom1:/dev/cdrom2:/dev/cdrom3 :0 0600 /dev/cdrecorder:/dev/cdrecorder1:/dev/cdrecorder2:/dev/cdrecorder3 :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3 This means that the user that logs into X (kde, gnome, whatever) will own the xdm display (:0), and the device permissions will be chnaged to match those above. Notice this: nimrodel:/etc # l /dev/scd? brw------- 1 cer audio 11, 0 Sep 9 2002 /dev/scd0 brw------- 1 cer disk 11, 1 Sep 9 2002 /dev/scd1 brw-r----- 1 root disk 11, 2 Sep 9 2002 /dev/scd2 brw-r----- 1 root disk 11, 3 Sep 9 2002 /dev/scd3 See? The cdrom is owned by me (cer), and only I access to it. -- Cheers, Carlos Robinson