forked from mirrors/linux-bench
8 lines
No EOL
279 B
Bash
8 lines
No EOL
279 B
Bash
#!/bin/bash
|
|
grep -E -v '^(halt|sync|shutdown)' /etc/passwd | awk -F: '($7 != "'"$(which
|
|
nologin)"'" && $7 != "/bin/false") { print $1 " " $6 }' | while read -r user
|
|
dir; do
|
|
if [ ! -d "$dir" ]; then
|
|
echo "The home directory ($dir) of user $user does not exist."
|
|
fi
|
|
done |