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 _etc_shadow backup failure

Discussion in 'Database Discussions' started by boyd108, Jun 15, 2017.

Tags:
  1. boyd108

    boyd108 Registered

    Joined:
    Jun 15, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    This question has been asked multiple times throughout the years with no answer to this specific problem.

    cPanel is set to run nightly backups and always receives the error:

    Failed to compress file “/netbackup/backup/2017-06-15/system/files/_etc_shadow”.
    (XID 6eynzm) “/usr/local/cpanel/3rdparty/bin/pigz” reported error code “13” when it ended:

    I'm on CENTOS 6.9 x86_64 and cPanel is version 64.0.29.

    When checking the file listed in the error, it's permissions are --w-------, which is why the file fails to compress - it lacks any read permissions. Since this file is generated, and all of the other files do have the correct permissions in order for gzip to run, I'm at a loss as to what to do.

    Again, I have searched both these forums and the web, and everyone pretty shrugs when it comes to this error. Any help is appreciated!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    35,600
    Likes Received:
    1,128
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you provide some insight on why you are using those permissions for the /etc/shadow file on your system? The default permissions for this file are 0600:

    Code:
    # ls -al /etc/shadow
    -rw------- 1 root root 1829 Jun 14 16:24 /etc/shadow
    Thank you.
     
    boyd108 likes this.
  3. boyd108

    boyd108 Registered

    Joined:
    Jun 15, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Well that right there is likely the problem. For some reason, the /etc/shadow file has the wrong permissions. All of our other instances are setup exactly the same, with the permissions including root 'r' access, but for some reason, this one server has the file with just 'w' permissions. I'll follow up tomorrow to confirm that manually changing the perms on the /etc/shadow file fixes the problem.
     
    cPanelMichael likes this.
  4. boyd108

    boyd108 Registered

    Joined:
    Jun 15, 2017
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    That fixed the problem. For some reason. on one server the /etc/shadow file didn't have read permissions, but on every other server it did. Adding read permissions to that file for owner fixed the problem and now the cPanel backups are running without errors, compressing _etc_shadow as intended. Thank you!
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    35,600
    Likes Received:
    1,128
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page