Blame tests/p_setup/passwd_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 - passwd 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/passwd && \
2a3685
grep -q "nobody:x:${nobody_grpid}" /etc/passwd
Athmane Madjoudj 3592bb
Athmane Madjoudj 3592bb
Athmane Madjoudj 3592bb
t_CheckExitStatus $?