Oh, so THAT's what -R does...
curtmack last edited by
This happened on #debian yesterday. You can't help but feel sorry for the guy who has to fix this mess...
9:26 < jwisher> I made a useraccount, when I su to it, the console outputs "bash: /dev/null: Permission denied" about 100 times. any idea how I can find the cause?
19:27 < peppe> jwisher: that doesn't sound good, ls -l /dev/null ?
19:27 < jwisher> "crwxr-xr-x 1 root root 1, 3 2007-11-13 21:33 /dev/null"
19:27 < jwisher> is that the right settngs?
19:28 < peppe> jwisher: not at all, it should be 666
19:28 < curtmack> sudo chmod 666 /dev/null
19:28 < curtmack> should clear it up
19:28 < peppe> jwisher: what's going on on your system? did you modify it?
19:28 < jwisher> a new admin decided to chmod/chown /
19:28 < curtmack> chmod -R?
19:29 < jwisher> yes
19:29 < curtmack> that's, uh, bad
All of the files in /dev, /home, /usr, etc, set not only so that they can only be written to by their owner (which, if this genius of an admin also chowned them, would be root), but so they can be executed. What fun!