mirror of
https://github.com/aquasecurity/linux-bench.git
synced 2025-02-22 22:25:33 +01:00
Delete 6.2.9.sh
Now running it in definitions
This commit is contained in:
parent
174b607c2b
commit
b801a976e7
1 changed files with 0 additions and 14 deletions
|
@ -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
|
|
Loading…
Add table
Reference in a new issue