[NTLUG:Discuss] protecting /dev/null from miswritten redirects.

Kyle Davenport Kyle_Davenport at compusa.com
Fri Jan 9 09:05:13 CST 2004


From: "Richard Geoffrion" <ntlug at rain4us.net>
>...
>now, I THINK I have all the quoting done correctly there...but I'm
>constantly  getting the OUTPUT of my commands stored in a file called
>/dev/null.

well then you do have the problem I described.  /dev/null is a "special"
file.
When you do ls -l /dev/null, you should have

crwxrwxrwx    1 root     root       1,   3 Aug 30  2002 /dev/null

If you don't have the c at the beginning, delete the file and recreate with

mknod -m777 /dev/null c 1 3

Kyle





More information about the Discuss mailing list