change permissions on /dev/null

Donal Farrell 0161977 at
Mon Aug 15 12:53:05 PDT 2005

Hi there. How do I cg=hange permissions or use mknod to make /dev/null
back into a charcter device? 

donal at linux:~> ls -la /dev/{null,zero}
-rw-r--r--  1 root root  117 2005-08-15 20:50 /dev/null
crw-rw-rw-  1 root root 1, 5 2004-04-06 14:27 /dev/zero

is what i'm getting at present. I take this to mean that /dev/zero is a
charcater device, which it should be, but /dev/null is coming up as an
'unknown file type', which it shouldn't be. I remeber seeing something
like this before on the lists, whereby you must first delete /dev/null,
do a mknod and change the permissions to 755(???) Anyone have any
expperience of this??



More information about the blfs-support mailing list