_etc_shadow backup failure
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!
-
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 -
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 -
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 -
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.
Comments
4 comments