Other Articles

Servers – Configure Gshadow Permissions

Support > Fixing Checks > Server

06 March, 2026

This check ensures that the permissions on the /etc/gshadow file are configured correctly. The /etc/gshadow file stores sensitive group security information such as hashed group passwords and group administrator details.

Restricting access to this file prevents unauthorized users from viewing or modifying sensitive group-related security data, which could otherwise be used to compromise system security.

Check Details

  • Resource: Server
  • Check: Configure Gshadow Permissions
  • Risk: If the /etc/gshadow file has incorrect ownership or permissions, unauthorized users may gain access to sensitive group security information such as hashed passwords or administrative group settings.

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

    stat /etc/gshadow
    
  3. Ensure that the file ownership is set to root:root or root:shadow.

    sudo chown root:root /etc/gshadow
    
    sudo chown root:shadow /etc/gshadow
    
  4. Set the correct file permissions to restrict access to authorized users only.

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

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