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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    0
    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:
    38,659
    Likes Received:
    1,427
    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.
     
Loading...

Share This Page