(Help) I screwed up permissions

Discussion in 'General Linux' started by sircosky, Oct 20, 2013.

  1. sircosky

    sircosky New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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).

  2. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Messages:
    1,260
    Likes Received:
    429
    Trophy Points:
    83
    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..
    zhulinjun likes this.
  3. cybercritter

    cybercritter New Member

    Messages:
    6
    Likes Received:
    4
    Trophy Points:
    3
    Can you capture a sample list of the /usr directory?
  4. grim76

    grim76 Active Member Staff Writer

    Messages:
    177
    Likes Received:
    48
    Trophy Points:
    28
    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.
    linuxn00b likes this.
  5. linuxn00b

    linuxn00b New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Your situation is most fortunate...I agree with grim76; you are better off with a fresh install.

Share This Page