Time to Change the Permissions

I’ve got a SCSI scanner attached to /dev/sg0. Under previous versions of RedHat, I set the group to disk, added read and write permissions for the group and added myself to the group. Since upgrading to a 2.6 kernel which has the UDEV filesystem, every time I reboot, I have to do this over again. Until I found out how to make it stick. These directions are for Ubuntu, but they were close enough. Here’s what I had to do differently for Fedora Core 4:

Fedora doesn’t have /etc/udev/udev.rules, rather a directory called /etc/udev/rules.d. This is specified in the top-level configuration file /etc/udev/udev.conf. On my box, rules.d has one file called 50-udev.rules. I edited this file. On the line you add, I changed the group to disk instead of scanner. Once done, as root, do rmmod sg, then modprobe sg to reload the driver and check your work. One bit of goofiness I saw was that adding the SYMLINK parameter caused my permissions to be ignored. So I left it off. I can live with just /dev/sg0.