(Help) I screwed up permissions

S

sircosky

Guest
I was trying to set up permissions on a VPS used for game servers so each user could only access their respective folders from sftp, so after setting up everything i did "chmod -R o-r /" from the root directory. Now everyone appears to be locked out of the system other than my current root sessions. I tried to revert back to normal by doing "chmod -R o+r /" but it didn't appear to work. Am I screwed or can fix this without reinstalling?

I am running centOS 6 (x64).
 


Just to be sure, you realize that -R for chmod means recursive? As in all the files/directories in and below the directory you give it. Essentially you changed the permissions of ALL files and directories on the computer. I think you are going to run into more issues than what you have now..
 
Can you capture a sample list of the /usr directory?
 
I have seen this done in the past and the systems that are recovered are rarely stable. Your best bet would be to backup what you can/need and then do a fresh install.

I know that is not what you want to hear, but your time is probably best served with the most direct answer.
 
Your situation is most fortunate...I agree with grim76; you are better off with a fresh install.
 


Top