SV-215267r508663_rule
V-215267
SRG-OS-000206-GPOS-00084
AIX7-00-002071
CAT II
10
Change the group of the system log file(s) to a system group:
# chgrp [system_group] /path/to/system-log-file
Check the group of log files:
# ls -lL /var/log /var/log/syslog /var/adm
/var/adm:
total 376
drw-r----- 2 root system 256 Jan 24 12:31 SRC
drwx------ 4 root system 256 Jan 24 07:28 config
-rw-r----- 1 root system 1081 Jan 24 09:05 dev_pkg.fail
-rw-r----- 1 root system 250 Jan 24 09:05 dev_pkg.success
-rw------- 1 root system 64 Jan 24 09:43 sulog
drwxr-xr-x 3 root system 256 Jan 24 12:28 sw
drwx------ 2 root system 256 Jan 24 08:06 wpars
-rw-r----- 1 adm adm 7517448 Apr 29 14:10 wtmp
/var/log:
total 8
drwxr-xr-x 2 root system 256 Jan 24 08:44 aso
-rw-r----- 1 root system 603 Jan 24 10:30 cache_mgt.dr.log
If any of the log files have group other than a system group, this is a finding.
V-215267
False
AIX7-00-002071
Check the group of log files:
# ls -lL /var/log /var/log/syslog /var/adm
/var/adm:
total 376
drw-r----- 2 root system 256 Jan 24 12:31 SRC
drwx------ 4 root system 256 Jan 24 07:28 config
-rw-r----- 1 root system 1081 Jan 24 09:05 dev_pkg.fail
-rw-r----- 1 root system 250 Jan 24 09:05 dev_pkg.success
-rw------- 1 root system 64 Jan 24 09:43 sulog
drwxr-xr-x 3 root system 256 Jan 24 12:28 sw
drwx------ 2 root system 256 Jan 24 08:06 wpars
-rw-r----- 1 adm adm 7517448 Apr 29 14:10 wtmp
/var/log:
total 8
drwxr-xr-x 2 root system 256 Jan 24 08:44 aso
-rw-r----- 1 root system 603 Jan 24 10:30 cache_mgt.dr.log
If any of the log files have group other than a system group, this is a finding.
M
4012