Originally Posted by codon
I made (perhaps several) mistakes when I was trying to use the chmod . I remember i typed
chmod -R 611
at certain directory, then X window failed. I restarted the system and issued :
chmod -R 777 ./
at the safe-mode terminal. Then rebooted. The X window worked well again. but I must have changed something wrongly because I can no longer 'su' . when I try i get this:
setgid: Operation not permitted
I cannot switch to super-user any longer. This is bad. Could anyone help me out?
thanks a lot.
I am not sure what a "safe-mode terminal" is but this seems like a
permissions problem. Try:
ls -l /bin/su
it should look like:
-rwsr-xr-x 1 root root 30288 2008-04-02 21:07 /bin/su
if its not like this, try sudo chmod 755 /bin/su and then set the SUID bit. good luck. I hope you learned how powerful the permission system is. and of course the downside of fouling it up with such a broad change. don't do that anymore.