All local initialization files must have mode 0740 or less permissive.

From SOLARIS 10 X86 SECURITY TECHNICAL IMPLEMENTATION GUIDE

Part of GEN001880

Associated with IA controls: ECLP-1

Associated with: CCI-000225

SV-905r2_rule All local initialization files must have mode 0740 or less permissive.

Vulnerability discussion

Local initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon logon.

Check content

Check the modes of local initialization files. Procedure: # ls -al //.login # ls -al //.cshrc # ls -al //.logout # ls -al //.profile # ls -al //.bash_profile # ls -al //.bashrc # ls -al //.bash_logout # ls -al //.env # ls -al //.dtprofile (permissions should be 0755) # ls -al //.dispatch # ls -al //.emacs # ls -al //.exrc # find //.dt ! -fstype nfs \( -perm -0002 -o -perm -0020 \) -exec ls -ld {} \; (permissions not to be more permissive than 0755) If local initialization files are more permissive than 0740, the .dt directory or the .dtprofile file is more permissive than 0755, this is a finding.

Fix text

Ensure user startup files have permissions of 0740 or more restrictive. Examine each user's home directory and verify all file names beginning with "." have access permissions of 0740 or more restrictive. If they do not, use the chmod command to correct the vulnerability. Procedure: # chmod 0740 .filename NOTE: The period is part of the file name and is required.

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer