mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-23 01:03:35 +07:00
strip unnecessary
This commit is contained in:
parent
d9f10c221a
commit
88cd5a905d
@ -38,21 +38,8 @@ home_folder_access_rights_lockdown() {
|
||||
if [ -f /var/cache/security-misc/state-files/$user ]
|
||||
continue # only doing once
|
||||
fi
|
||||
touch "/var/cache/security-misc/state-files/$user # so that we know we did this one
|
||||
dpkg-statoverride --add --update $user $user 0700 /home/$user # home directory of the user itself
|
||||
find /home/$user -type d | while read directory; # doing this to all directories in the users home
|
||||
do
|
||||
chown $user $directory
|
||||
chmod 700 $directory
|
||||
done
|
||||
|
||||
# not doing it because this sets all files to non executable
|
||||
# find /home/$user -type f | while read file; # doing this to all files in the users home
|
||||
# do
|
||||
# chown $user $file
|
||||
# chmod 600 $file
|
||||
# done
|
||||
fi
|
||||
touch /var/cache/security-misc/state-files/$user # so that we know we did this one
|
||||
done
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user