toolkit/func/core/pkg_setup/20-test-passwd-file.sh

10 lines
201 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "setup" "Testing /etc/passwd file"
NOBODY=65534
grep -q "root:x:0" /etc/passwd && \
grep -q "bin:x:1" /etc/passwd && \
grep -q "nobody:x:${NOBODY}" /etc/passwd
r_checkExitStatus $?