You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
367 B
19 lines
367 B
12 months ago
|
#!/bin/sh
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
|
||
|
t_Log "Running $0 - group file sanity check."
|
||
|
|
||
|
if [ "$centos_ver" -ge 8 ] ;then
|
||
|
nobody_grpid="65534"
|
||
|
else
|
||
|
nobody_grpid="99"
|
||
|
fi
|
||
|
|
||
|
grep -q 'root:x:0' /etc/group && \
|
||
|
grep -q 'bin:x:1' /etc/group && \
|
||
|
grep -q 'daemon:x:2' /etc/group && \
|
||
|
grep -q "nobody:x:${nobody_grpid}" /etc/group
|
||
|
|
||
|
|
||
|
t_CheckExitStatus $?
|