Delete 6.2.9.sh

Now running it in definitions
This commit is contained in:
Yoav Rotem 2020-11-22 13:50:27 +02:00 committed by GitHub
parent 174b607c2b
commit b801a976e7
Failed to generate hash of commit

View file

@ -1,14 +0,0 @@
#!/bin/bash
grep -E -v '^(halt|sync|shutdown)' /etc/passwd | awk -F: '($7 != "'"$(which
nologin)"'" && $7 != "/bin/false") { print $1 " " $6 }' | while read user
dir; do
if [ ! -d "$dir" ]; then
echo "The home directory ($dir) of user $user does not exist."
else
owner=$(stat -L -c "%U" "$dir")
if [ "$owner" != "$user" ]; then
echo "The home directory ($dir) of user $user is owned by $owner."
fi
fi
done