[NTLUG:Discuss] protecting /dev/null from miswritten redirects.
Kyle Davenport
Kyle_Davenport at compusa.com
Thu Jan 8 11:16:47 CST 2004
From: "Richard Geoffrion" <ntlug at rain4us.net>
> How does one protect /dev/null from being accidently overwritten by
command
> output? Yes it's a self inflicted would but I'm tired of the infliction.
>
> Suggestions?
That's kind of funny. It's there for files to "overwrite"! But maybe you
mean instead something like what happened to me recently. A new rpm
installed in an old Redhat system actually replaced this device with a
file, and I didn't notice till I rebooted. Booting up, some commands are
outputting to /dev/null while the filesystem is still read-only (ok if a
device, error if a file), causing a boot failure. Very irritating and took
me a while to resolve.
Kyle
More information about the Discuss
mailing list