Other Articles

Servers – Configure Shadow Backup Permissions

Support > Fixing Checks > Server

06 March, 2026

This check ensures that the permissions on the /etc/shadow- file are configured correctly. The /etc/shadow- file stores backup information about user accounts, including hashed passwords and other sensitive security data.

Improper ownership or permissions on this file may allow unauthorized users to access sensitive authentication information, which could compromise system security.

Check Details

  • Resource: Server
  • Check: Configure Shadow Backup Permissions
  • Risk: If the /etc/shadow- file has incorrect ownership or permissions, unauthorized users may gain access to sensitive account backup information such as hashed passwords and authentication data.

Remediation Steps

  1. Open a terminal session on the server with root or sudo privileges.
  2. Verify the current ownership and permissions of the /etc/shadow- file.

    stat /etc/shadow-
    
  3. Ensure that the file ownership is correctly set to root and the group is set to either root or shadow.

    sudo chown root:root /etc/shadow-
    
    sudo chown root:shadow /etc/shadow-
    
  4. Set secure file permissions to ensure that only authorized users can access the file.

    sudo chmod o-rwx,g-rw /etc/shadow-
    
  5. Verify that the final configuration matches the following requirements:

    • Owner: root
    • Group: root or shadow
    • Permissions: 640 or more restrictive