Skip to main content

_etc_shadow backup failure

Comments

4 comments

  • cPanelMichael
    When checking the file listed in the error, it's permissions are --w-------

    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:
    # ls -al /etc/shadow -rw------- 1 root root 1829 Jun 14 16:24 /etc/shadow
    Thank you.
    0
  • boyd108
    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.
    0
  • boyd108
    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!
    0
  • cPanelMichael
    I'm happy to see the issue is now solved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.