change permissions on /dev/null

Jeremy Byron rjjbyron at
Mon Aug 15 21:57:14 PDT 2005

Donal Farrell wrote:
> Hi there. How do I change 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

1) Remove devices:
umount /dev/pts
umount /dev/shm
umount /dev
rm -f /dev/console
rm -f /dev/null

2) /dev setup instructions:
(The instructions from Ch-6.8.1 should suffice.)

3) Cleanup:

That should do it I think..


More information about the blfs-support mailing list