Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

files and folders permission

Discussion in 'Security' started by imran_khan, Jan 8, 2015.

  1. imran_khan

    imran_khan Well-Known Member

    Joined:
    Jun 10, 2013
    Messages:
    154
    Likes Received:
    1
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    By mistake I have ran the below command in /home/cpanelaccount/ folder instead of /home/cpanelaccount/public_html.

    find . -type d -exec chmod 755 {} \;
    find . -type f -exec chmod 644 {} \;

    All the files and folders permission are changed under /home/cpanelaccount/ folder.
    Now I want to correct the permission of single account under /home/cpanelaccount/ folder. Please suggest me on the same.

    Thanks,
    Imran Khan.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no commands that will fix all permissions values after running such a command. You may want to restore the account, or manually update the permissions by comparing it to another account. One exception is that some mail files can have permissions corrected with this command:

    Code:
    /scripts/mailperm $username
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice