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 |
|
|
Athmane Madjoudj |
3592bb |
grep -q 'root:x:0' /etc/passwd && \
|
|
Athmane Madjoudj |
3592bb |
grep -q 'nobody:x:99' /etc/passwd
|
|
Athmane Madjoudj |
3592bb |
|
|
Athmane Madjoudj |
3592bb |
|
|
Athmane Madjoudj |
3592bb |
t_CheckExitStatus $?
|