mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 21:14:53 -04:00
readability
This commit is contained in:
parent
f487752ba1
commit
b5ba03247a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
home_folder_access_rights_lockdown() {
|
||||
# Each users home directory to himself
|
||||
for user in $(dir /home); do # lists directories only
|
||||
if [ grep -q "$user" /etc/passwd ]; then # check if user actually exists, and this is not some random directory
|
||||
if [ grep --quiet "$user" /etc/passwd ]; then # check if user actually exists, and this is not some random directory
|
||||
dpkg-statoverride --add --update $user $user 0700 /home/$user # home directory of the user itself
|
||||
echo "Permission updated: chmod go-rwx /home/$user"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue