More bullshit from another asshole with a blog
« Previous:

Missing /dev/null
27Nov05 

Posted by wafwot

Sometimes I run across some tech tidbit that I want to save, and have no place to save it. Tonight was one such time. I was working on this godamned ticket system on my VPS account, and a friend jabbered me trivia question about creating /dev/null if it’s accidentally deleted.

[06:53:44 PM] <vmann> Sheesh, now I remember why I like this work... did you know sshd will not start properly without a valid /dev/null file? Remember how to make one after some bonehead tried to delete a file by typing 'mv somefile /dev/null' as root?
[06:55:00 PM] <wafwot> Ummm... No... mknod something?
[06:55:33 PM] <vmann> hehe, yep! rm /dev/null; mknod -m 666 /dev/null c 1 3 to be exact
[06:57:38 PM] <wafwot> Wow... I'd have to look that up...
[06:57:39 PM] <vmann> Time to go play with kittens. Now that that crap is off my mind. Can't wait to be off duty on Tuesday
[06:57:45 PM] <vmann> Yeah, I did too
[06:58:02 PM] <vmann> But I knew -rw-rw-rw wasn't the right mode for /dev/null

I really should look into some kind of software package where I can store these little gems as I come across them. I’m getting too old to remember new shit.

« Previous:

One Response to “Missing /dev/null”

  1. Jake says:

    Thats good info to know Jim, heh cmod 666 -> LOVE IT!
    Looks like you need to get an RTFM like at work!

    Always rely on the Vmann for da win!