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.

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:
    5
    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,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page