So I deliberately changed permission of the /lib folder to 750. Not recursive. I'm now faced with
-bash: /bin/ls: Permission deniedand (much more problematic)
-bash: /usr/bin/sudo: Permission deniederrors. So one thing I need to figure out is how to fix this problem (live-cd... but this is a headless server with DisplayPort only and no DP monitors available, so that's going to suck), but mostly... why did this happen?
I admit, *nix permissions have always messed with my head. Why is changing the world view of my lib folder making it so I can't do anything? Had I done 751 would I have been OK? Had I had my own user added to the root group would I have been OK (but that seems like a bad idea)?
Thanks.
[edit]
As requested in comments, here are the pertinent getfacl results (identical for lib, bin and usr after fixing /lib back to 755):
# owner: root
# group: root
user::rwx
group::r-x
other::r-x 7 1 Answer
OK, I got it back up and running.
I've now tried again with 751 instead of 750 and it appears to work. I guess the 0 made all the libraries blind to the currently logged in user, since that folder is owned by root:root and I'm not a member of root. Sudo (etc) depends on the libraries and there was no executable bit. 751 sets executable to the world, so that resolved it. Am I going to run into other troubles with 751? We'll see ;)
0