GEN001740 - All global initialization files must be owned by root - '/etc/csh.cshrc'

Information

Global initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon logon. Failure to give ownership of sensitive files or utilities to root or bin provides the designated owner and unauthorized users with the potential to access sensitive information or change the system configuration which could weaken the system's security posture.

Solution

Change the ownership of global initialization files with incorrect ownership.

Procedure:
# chown root <global initialization files>

or:
# ls etc/bashrc /etc/csh.cshrc /etc/csh.login /etc/csh.logout /etc/environment /etc/ksh.kshrc /etc/profile /etc/suid_profile /etc/profile.d/* 2>null|xargs stat -L -c %U:%n|egrep -v '^root'|cut -d: -f2|xargs chown root
will set the owner of all files not currently owned by root to root.

See Also

http://iasecontent.disa.mil/stigs/zip/U_RedHat_5_V1R18_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, CAT|II, CCI|CCI-000225, Group-ID|V-11982, Rule-ID|SV-37283r1_rule, STIG-ID|GEN001740, Vuln-ID|V-11982

Plugin: Unix

Control ID: 60af4a217d3dd65b91f9b4eb2ff0cf819343a24f67daf7592cd5c80bb0b5573c