LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-07-2005, 01:58 PM   #1
PseudoRandom
LQ Newbie
 
Registered: Mar 2005
Location: Halifax, NS, Canada
Distribution: Debian, Ubuntu, FC5
Posts: 17

Rep: Reputation: 0
/dev permission problems [was: /dev/null permissions and kde issues]


Hi all,

A recent spate of apt-getting my (i386) Sarge system has left me with some mysterious problems. The most immediate is that on reboot the /dev/null permisions are being set to 660 (crw-rw----). Is there any way of tracking down what is resetting this? (There's nothing in /var/log/syslog, message, debug, etc. that seems relevant, none of the scripts in /etc/init.d are chmod-ing it, and udev appears to be correctly configured.)

This problem makes kdm do very strange things. But if I set the permissions from console and start KDE manually, more strange stuff happens: no program requiring root access will run (apparently "su" cannot be found, although it's in my $PATH), nor will x shells (I've tried xterm and konsole).

So far I've removed, reinstalled, and reconfigured xwindows and kde, and done a dist-upgrade in case there was some odd inconsistency. I've also done some of the recommended things that sometimes fix x-windows and KDE provblems (clear out tmp directories and start with an empty ~/.kde directory).

Thanks in advance for any suggestions!

Last edited by PseudoRandom; 04-08-2005 at 09:05 AM.
 
Old 04-07-2005, 09:14 PM   #2
PseudoRandom
LQ Newbie
 
Registered: Mar 2005
Location: Halifax, NS, Canada
Distribution: Debian, Ubuntu, FC5
Posts: 17

Original Poster
Rep: Reputation: 0
Angry

UPDATE

I've just noticed (because I was getting the error "PRNG not seeded" when trying to use ssh) that ALL the /dev files except symlinks, /dev/hdc (my CD-RW) and my current terminal session are set to 660 with ownership root.root; much as I look forward to figuring out what groups and permissions they should actually have, I'm not optimistic that any changes I make will survive a re-boot.

It looks like udev is creating the device files with entirely the wrong permissions. There's a similar problem described on the debian-user list(http://lists.debian.org/debian-user/.../msg00583.html), but with no replies so far.

Last edited by PseudoRandom; 04-08-2005 at 09:47 AM.
 
Old 05-04-2005, 03:16 PM   #3
chrisdi
LQ Newbie
 
Registered: Jan 2005
Posts: 6

Rep: Reputation: 0
Hi!

Just go into

Code:
/etc/udev/rules.d/
and add a symlink

Code:
ln -s ../permissions.rules 020_permissions.rules
This helped me. :-)

ChrisDi
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
/dev/null linuxprogrammer Linux - Newbie 1 09-05-2005 07:07 AM
mv c:\WINDOWS /dev/null; mount /dev/hda treehead LinuxQuestions.org Member Intro 5 10-19-2004 08:53 AM
/dev/null permissions? alaios Linux - General 2 10-09-2004 02:56 PM
1> /dev/null 2> /dev/null elyk Programming 9 09-20-2004 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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