Other Articles

Servers – Remove Legacy '+' Entries from Passwd

Support > Fixing Checks > Server

06 March, 2026

This check ensures that there are no legacy '+' entries present in the /etc/passwd file. Historically, the '+' character was used as a marker to include account information from Network Information Service (NIS) maps.

Modern systems no longer rely on this mechanism. If these entries remain in the system configuration files, they may allow unintended access or expose the system to security risks.

Check Details

  • Resource: Server
  • Check: Validate NIS Legacy Entries
  • Risk: If legacy '+' entries exist in the /etc/passwd file, attackers may exploit them to gain unauthorized or privileged access to the system.

Remediation Steps

  1. Open a terminal session on the server with root or sudo privileges.
  2. Check the /etc/passwd file for any legacy '+' entries.

    grep '^\+:' /etc/passwd
    
  3. If the command returns any output, it indicates that legacy '+' entries exist in the file.
  4. Open the /etc/passwd file using a text editor.

    sudo nano /etc/passwd
    
  5. Locate and remove any lines that begin with '+'.
  6. Save the file and exit the editor.
  7. Run the audit command again to confirm that no legacy entries remain.

    grep '^\+:' /etc/passwd
    
  8. If the command returns no output, the system is correctly configured.