3
I am using Ubuntu 11.04.
I mistyped and wrote sudo chmod 444 /
instead of writing /home
.
Everything went blank and icons started disappearing, and now when I try to run Ubuntu, it hangs on the initial Ubuntu sign.
I know that I have changed the permissions for root itself, but is there any way I can revert back?
Thanks a lot :) Entered this in the root prompt and everything got recovered .... – user57162 – 2011-10-25T19:24:13.880
Did chmod / once for educational reasons and took me quite some while to figure out the sticky but stuff. :) – Jens Erat – 2011-10-25T19:27:25.513
-1,
/
is not supposed to have the sticky bit set. It's only for/tmp
. – user1686 – 2011-10-25T19:43:50.0631@grawity Looks you're right, it isn't set on my linux boxes either. You need it on OS X machines, I misconcieved this would be the same in linux. Will edit my answer. – Jens Erat – 2011-10-25T19:55:52.030
Interesting. I'm curious why OS X uses it... – user1686 – 2011-10-25T21:14:31.573
2@grawity: it's because OS X allows the admin group write access to /, and without the sticky bit an admin could do nasty things like rename & replace top-level dirs without needing to go through any special authentication (sudo or the like). – Gordon Davisson – 2011-10-25T23:00:53.400