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!

How to reset user home directory permissions

Discussion in 'Security' started by jwogrady, Jun 27, 2015.

  1. jwogrady

    jwogrady Member

    Joined:
    Jul 9, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    I have a user account whose home directory got changed. Is there are way to reset the accounts permissions to the default state? All the posts on this I can find only talks about changing ownership and permission to the public_html directory. What I'm looking for is a script that resets permissions for the entire account to default state. Essentially, I want to restore the account from a security standpoint to the new account state without making any file changes.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,888
    Likes Received:
    90
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    The /home/$username directory itself is set to 0711 permissions. It's likely easier to backup the account, ensure the archive has all of the files associated with the account included, and then terminate/restore the account.

    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