The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I changed root file & folder permissions by mistake

Discussion in 'Security' started by Emiliano, May 23, 2013.

  1. Emiliano

    Emiliano Active Member

    Joined:
    May 13, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Orlando, Florida, United States
    Hello,

    i changed root and files and folders permissions by mistake.
    Is there anyone that know what the files and folder's permission needs to be?

    I used on root:
    find . -type f -exec chmod 644 {} \;
    find . -type d -exec chmod 755 {} \;

    Thank you in advance.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Did you modify the permissions on all files/directories on the server? If so, it may be safer to go ahead and backup the accounts to a remote location and reinstall the OS/cPanel.

    Thank you.
     
  3. Emiliano

    Emiliano Active Member

    Joined:
    May 13, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Orlando, Florida, United States
    Hello,
    I know what you mean but that would be a huge work :(
    Any idea to find file permissions so that i can change them manually?
    Thank you
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    In what directory you did that?
     
  5. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    If you have another cPanel server to access then check and compare the permission on it and apply the same on your server.
     
  6. Emiliano

    Emiliano Active Member

    Joined:
    May 13, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Orlando, Florida, United States
    Yes I did that on ROOT.
    On su - directory or root of server.
     
  7. InterServed

    InterServed Well-Known Member

    Joined:
    Jul 10, 2007
    Messages:
    255
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    If you executed the commands on the /root folder , that shouldn't be a problem.
    However if it was executed on the "/" i would also suggest re-installing the operating system.
     
Loading...

Share This Page