Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 09-03-2003, 01:31 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
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,

Old 09-03-2003, 01:46 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 253Reputation: 253Reputation: 253
Check your startup scripts to make sure they aren't reverting them back at boot time.
Old 09-03-2003, 02:04 PM   #3
LQ Newbie
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0

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.

Old 09-05-2003, 06:45 AM   #4
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
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
Old 09-05-2003, 07:19 AM   #5
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
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.

Last edited by fsbooks; 09-05-2003 at 07:20 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod/chown and folders :) chibi Linux - Newbie 2 04-28-2005 04:56 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 12:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 03:05 PM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 03:27 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration