Art Alexion on 30 Mar 2007 13:09:59 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] why is /dev/null getting flamozzled?


On Friday 30 March 2007 03:17, sean finney wrote:
> On Thu, 2007-03-29 at 11:16 -0400, Art Alexion wrote:
> > Lately, when I reboot, X won't start because /dev/null has become
> > read-only at the user level, specifically crwx-r--r--.
>
> just an idea, or at least an initial direction to look: i tried
> disabling udev once only to discover that various devices
> like /dev/null, /dev/zero, and /dev/random didn't have their permissions
> properly set.
>
> turns out there's a udev rule responsible for setting the proper
> ownership/permissions, so you're more or less stuck running udev on
> ubuntu (i don't know if it's the same on debian).  so, maybe udev isn't
> running, or you somehow lost the file that sets the permissions?
>
> on my system (etch laptop) the file is /etc/udev/permissions.rules.

On ubuntu, it seems to be /etc/udev/permissions.d/udev.permissions which 
includes:

# character devices

ptmx:root:tty:0666
random:root:root:0666
urandom:root:root:0444
kmem:root:kmem:0640
mem:root:kmem:0640
port:root:kmem:0640
null:root:root:0666
zero:root:root:0666
full:root:root:0666

and/or /etc/udev/rules.d/40-permissions.rules which includes:

# Other devices, by name
KERNEL=="null",                         MODE="0666"
KERNEL=="zero",                         MODE="0666"

both of which seem correct.

I am guessing that /dev/null only resides in RAM and not on the hard drive, 
eliminating the possibility of a bad block on the disk.

-- 

_____________________________________________________________
Art Alexion

PGP fingerprint: 52A4 B10C AA73 096F A661  92D2 3B65 8EAC ACC5 BA7A
Keyserver: hkp://subkeys.pgp.net
The attachment - signature.asc - is my electronic signature; no need for 
alarm.  Info @ 
http://mysite.verizon.net/art.alexion/encryption/signature.asc.what.html
_____________________________________________________________

Attachment: pgpvR2nJOJgIz.pgp
Description: PGP signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug