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.

SOLVED Changed Owner of Files Incorrectly

Discussion in 'E-mail Discussions' started by Mehrdad Tari, Jun 25, 2017.

  1. Mehrdad Tari

    Mehrdad Tari Member

    Joined:
    Nov 11, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    ایران
    cPanel Access Level:
    Root Administrator
    hello

    Unfortunately I made a mistake
    I wanted to change the ownership of a file
    Instead of the file
    My senses were thrown
    I hit the whole path of root (/)
    And all files were corrupted
    I fixed the access problem
    The e-mail has a problem
    Will not be delivered
    And the WordPress connection to smtp does not work.

    How can I Rebuild mail server?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,484
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You need to give the mail user permission to the mail folder. I think you should ask your system administrator or if you do not have any, you should hire someone to fix this because this is far from explaining things. You can raise a ticket to the cPanel support if you want..

    You can also give it a try by executing upcp
     
    Mehrdad Tari likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Did you modify the ownership value of all files under the server's (/) root directory, or under the account's home directory (e.g. /home/$username)?

    If you modified the ownership values for all files on the system, then you may want to review the following thread to see the recommended approach to address this issue:

    Permissions incorrect serverwide

    Thank you.
     
    Mehrdad Tari likes this.
  4. Mehrdad Tari

    Mehrdad Tari Member

    Joined:
    Nov 11, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    ایران
    cPanel Access Level:
    Root Administrator
    Hi,
    You must set the home and mail folder owner and permission of each account
    it's true?
    If you want to Bypassing the problem
    By building new hosts, accesses must be self-regulated
    With the new host, emails from them will not be sent as phpmail
    Because the connection to smtp is not possible

    The execution of (upcp and upcp --force) did not help
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Mehrdad Tari,

    Could you review my last response and let us know the exact command you ran and from which directory you ran it?

    Thank you.
     
    Mehrdad Tari likes this.
  6. Mehrdad Tari

    Mehrdad Tari Member

    Joined:
    Nov 11, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    ایران
    cPanel Access Level:
    Root Administrator
    I entered the following command:
    chown boardfai:mail /home/boardfai/etc /home/boardfai/etc/*/shadow /home/boardfai/etc/*/passwd

    my customer entered chown and chmod for (/) directory
    All the sites and services were in trouble

    We fixed the site problem
    But emails can not be sent from phpmail
     
  7. webhostuk

    webhostuk Well-Known Member

    Joined:
    Sep 11, 2013
    Messages:
    112
    Likes Received:
    11
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Can you check the permission for : exim.pl
    try using command.
    stat /etc/exim.pl
     
    Mehrdad Tari likes this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Mehrdad Tari likes this.
  9. Mehrdad Tari

    Mehrdad Tari Member

    Joined:
    Nov 11, 2015
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    ایران
    cPanel Access Level:
    Root Administrator
    We transferred the sites to a new server

    thanks
     
    cPanelMichael likes this.
Loading...

Share This Page