Blame tests/p_setup/group_file_test.sh

Athmane Madjoudj 3592bb
#!/bin/sh
Athmane Madjoudj 3592bb
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 3592bb
Athmane Madjoudj 3592bb
t_Log "Running $0 - group file sanity check."
Athmane Madjoudj 3592bb
f49232
if [ "$centos_ver" -ge 8 ] ;then
2a3685
  nobody_grpid="65534"
2a3685
else
2a3685
  nobody_grpid="99"
2a3685
fi
2a3685
Athmane Madjoudj 3592bb
grep -q 'root:x:0' /etc/group && \
Athmane Madjoudj 3592bb
grep -q 'bin:x:1' /etc/group && \
Athmane Madjoudj 3592bb
grep -q 'daemon:x:2' /etc/group && \
2a3685
grep -q "nobody:x:${nobody_grpid}" /etc/group 
Athmane Madjoudj 3592bb
Athmane Madjoudj 3592bb
Athmane Madjoudj 3592bb
t_CheckExitStatus $?