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

11 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 $?