Skip to content

Commit

Permalink
enh: osh-orphaned-homedir.sh: also cleanup /run/faillock
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Jan 9, 2024
1 parent 345a1f9 commit 797ef68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/cron/osh-orphaned-homedir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,8 @@ do
fi
done < <(find /home/ -mindepth 1 -maxdepth 1 -type d -nouser -nogroup -mmin +3 -print0)

# there are also temporary files that might not be cleaned when an account disappears,
# so check for those here
[ -d /run/faillock ] && find /run/faillock -xdev -nouser -type f -delete

exit_success

0 comments on commit 797ef68

Please sign in to comment.