Other Articles

Servers – Configure Passwd Backup Permissions

Support > Fixing Checks > Server

06 March, 2026

This check ensures that the permissions on the /etc/passwd- file are configured correctly. The /etc/passwd- file contains a backup of user account information stored in the /etc/passwd file.

Proper ownership and permissions help protect this sensitive backup file from unauthorized access or modification that could compromise system security.

Check Details

  • Resource: Server
  • Check: Configure Passwd Backup Permissions
  • Risk: If the /etc/passwd- file has incorrect ownership or permissions, unauthorized users may gain access to backup user account information or modify the file, which can lead to potential security risks.

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/passwd- file.

    stat /etc/passwd-
    
  3. Ensure that the file ownership is set to root:root.

    sudo chown root:root /etc/passwd-
    
  4. Set the correct file permissions so that the file remains readable but cannot be modified by unauthorized users.

    sudo chmod u-x,go-wx /etc/passwd-
    
  5. Verify that the final configuration matches the following requirements:

    • Owner: root
    • Group: root
    • Permissions: 644 (-rw-r--r--) or more restrictive