LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 09-03-2003, 02:31 PM   #1
Guust
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,

Guust
 
Old 09-03-2003, 02:46 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

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

Original Poster
Rep: Reputation: 0
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
 
Old 09-05-2003, 07:45 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
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, 08:19 AM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 449

Rep: Reputation: 31
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 08:20 AM.
 
  


Reply


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 05:56 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 01:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 03:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 04:05 PM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 04:27 PM


All times are GMT -5. The time now is 04:08 PM.

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