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.

Restoring default permissions

Discussion in 'General Discussion' started by olalonde, Jan 2, 2010.

  1. olalonde

    olalonde Registered

    Joined:
    Jan 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have accidently executed the following command as root:

    chmod 664 .* -R

    which chmods the parent directories (..) as well.

    Is there any way to recover my old permissions considering I don't have a fresh backup? I didn't have any custom permission so some generic script should be OK.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Under which directory did you executed the chmod command? If you have changed the permissions server wide, it's better you re-install your server as there is no specific script to change server wide permissions.

    If you have changed the permissions of all the accounts under /home, we can set the default permissions using a script.
     
Loading...

Share This Page