toolkit/func/core/pkg_setup/10-test-group-file.sh
2021-07-04 23:50:25 -07:00

12 lines
268 B
Bash
Executable File

#!/bin/bash
r_log "setup" "Testing /etc/group file"
NOBODY=65534
grep -q "root:x:0" /etc/group && \
grep -q "bin:x:1" /etc/group && \
grep -q "daemon:x:2" /etc/group && \
grep -q "sys:x:3" /etc/group && \
grep -q "nobody:x:${NOBODY}" /etc/group
r_checkExitStatus $?