LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2003, 10:34 AM   #1
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Rep: Reputation: 15
Question Reseting the file permissions


Seems like I have problems with starting up Gnome because of the permissions on /dev/audio. Maybe that's not the main problem - but seems like what's happening isn't right:

chmod 666 /dev/audio
It sets the permissions to:
crw-rw-rw-
After 1/2/3 reboots it sweeches back to
crw-------
Why? I'm pretty new to Linux, but I think that this shouldn't happen.

I have Mandrake 9.0

Thanks
 
Old 02-02-2003, 12:27 AM   #2
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
I'm not sure of why it happens, but maybe you could put chmod 666 /dev/audio in your startup rc file.. it isn't a good fix, but it will solve the problems somewhat.


(Also, did you make sure to change the permissions while in root? not "su" but "su -")



I'm somewhat new to linux so I hope this helped, if not...

-vex
 
Old 02-02-2003, 03:41 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Is /dev/audio a symlink or is it created by devFS? Probably. the chmod command should work as long as it's in your rc.local file which will be executed long after DevFS has created your device(s). To find if it's a symlink to the actual device:
ls -l /dev/audio

If it is a symlink, apply the chmod perms to the actual device.

Cool
 
Old 02-02-2003, 06:32 AM   #4
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the replays.
Where is this rc file that I should change?
And since I'm pretty new to Linux - I don't know what is "devFS".
The /dev/audio is not a symlink.
 
Old 02-02-2003, 06:36 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
DevFS is something that creates your devices during boot. The old way was to create MANY (just about anything I've ever needed) during the initial install. DevFS has quite a few advantages, good stuff I think.

On my Mandrake system, rc.local is in /etc/rc.d and there is also a symlink in /etc/rc.local for it. In there you would just enter the lines:
chmod 666 /dev/audio

And that's it. On subsequent reboots this should chmod that device at the end of the bootup process.

Cool
 
Old 02-02-2003, 11:30 AM   #6
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Ok, thanks - I'll see if it's working (since my problem appears after a few reboots).
Now, when I started Linux in text mode - I noteced one thing. I didn't notice it before since it was all working well, but now I saw that it says something like this:
Failed to start devfs deamon: something something file .devfs is missing etc.
I never get the time to see it entirely... But I don't see this error at all when I start Linux in graphical mode...
Wierd that I saw it just now when you told me about it...
Do you know what might be a problem?
Thanks for your help so far...
 
Old 02-02-2003, 11:56 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It's like one of those things. You hear a new word and all of a sudden, everyone is using it.

Anyway, check dmesg and /var/log/messages to see if you can hunt down the error and post up the error message for us a bit better.

Cool
 
Old 02-03-2003, 08:21 AM   #8
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Ok, this is what I found in the /var/log/messages:

Feb 3 16:04:34 localhost devfsd: Error opening file: ".devfsd"^INo such file or directory
Feb 3 16:04:34 localhost devfsd: Starting devfsd daemon: failed
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
Speedtouch 330 keeps reseting guerilla fighta Linux - Hardware 1 07-19-2003 02:55 AM
sysctl.conf is reseting PhilD Linux - Networking 0 06-02-2003 12:14 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration