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.

Permissions incorrect serverwide

Discussion in 'General Discussion' started by Ebad, Jan 3, 2017.

  1. Ebad

    Ebad Registered

    Joined:
    Jul 23, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tehran, Iran
    cPanel Access Level:
    Root Administrator
    Hi
    I'm run an incorrect script `chmod -R 755 .*.` that crash my VPS and all things incorrect
    How i can fix permissions of all data in my VPS ?
    Currently i am fix my http and Mysql and my websites back online but my emails can not send or receive and i can't upload any thing using PHP

    I'm test `repair mail permission` in WHM but issue not fix
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try to check ownership of your $HOMEDIR/etc $HOMEDIR/etc/*/shadow $HOMEDIR/etc/*/passwd files and folder and test it again.

    Code:
     chown $user:mail $HOMEDIR/etc $HOMEDIR/etc/*/shadow $HOMEDIR/etc/*/passwd
    
    Note : Replace $HOMEDIR to your userhome directory (/home/cPUSER) and $user to cPanel user name
     
    Ebad likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    While you may find some manual commands that you can run to help resolve the issue, it's really a better idea to install a new OS and complete a new installation of cPanel. Then, restore the accounts on the new server from backup, or by using the transfer option in Web Host Manager if you have no previous backups available.

    Thank you.
     
    Ebad likes this.
Loading...

Share This Page