From 88cd5a905d8aa0f6033ac4ba72903fbad4a90b4b Mon Sep 17 00:00:00 2001 From: monsieuremre <130907164+monsieuremre@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:25:24 +0000 Subject: [PATCH] strip unnecessary --- usr/libexec/security-misc/permission-lockdown | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/usr/libexec/security-misc/permission-lockdown b/usr/libexec/security-misc/permission-lockdown index eab53b0..8e807ff 100755 --- a/usr/libexec/security-misc/permission-lockdown +++ b/usr/libexec/security-misc/permission-lockdown @@ -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 }