LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   chown and chmod in /dev resets at boot (https://www.linuxquestions.org/questions/mandriva-30/chown-and-chmod-in-dev-resets-at-boot-88890/)

Guust 09-03-2003 01:31 PM

chown and chmod in /dev resets at boot
 
Hi all,

I just managed to get my scanner started via sane. To access the scanner from the network I use saned. To allow saned to access the scanner the owner and mode of /dev/usbscanner and /dev/usb/scanner0 had to be changed via:

# chown root:saned /dev/usbscanner && chmod g+rw /dev/usbscanner

Everything works fine untill the next (re)boot. Checking /dev/usbscanner shows that the settings have been restored to their old values (eg owner of /dev/usbscanner is reset to root).

What is causing this behaviour? I would like to make these changes persistent. Any help will be much appreciated.

thanks in advance,

Guust

trickykid 09-03-2003 01:46 PM

Check your startup scripts to make sure they aren't reverting them back at boot time.

Guust 09-03-2003 02:04 PM

Thanks,

can you give me a clue where I should look and what I should look for? I had a look at some of the scripts in /etc/rc.d but I'm not really sure what to look for.

Guust

/bin/bash 09-05-2003 06:45 AM

Mandrake uses devfs by default so you need to study up on devfs. There are many config files which devfs uses so I can't tell you which one to look in, but try /etc/devfsd.conf also look in the directory /etc/devfsd there should be a bunch of config files in there.

You don't have to reboot every time you change something. You can change the permissions and do this (as root) to see if they stick:
service devfsd restart

fsbooks 09-05-2003 07:19 AM

I don't use Mandrake, however, in redhat the file is /etc/security/console.perms while in Suse the proper file in /etc/permissions. Perhaps it is one of those, but as the folks say above, you could probably check your config files. Perhaps the command "apropos permissions" will give it to you, It does on both redhat and suse ... well almost, on suse it gives a man chkstat which is a tool suse gives to edit the /etc/permissions for those who don't like to use vi.


All times are GMT -5. The time now is 07:09 AM.