patchTiger UNIX security tool - Patches: patch #7856, Improve speed of dormant account...


You are not allowed to post comments on this tracker with your current authentication level.

patch #7856: Improve speed of dormant account checking

Submitted by:  Arran Schlosberg <aschlosberg>
Submitted on:  Sat 29 Sep 2012 08:47:10 AM UTC  
Category:  None Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Sun 04 Feb 2018 09:17:15 PM UTC, comment #1:

Thank you very much for the proposal, I have just included in GIT a patch fixing the check in scripts/check_accounts to speed it up as suggested.

Javier Fernandez-Sanguino Peña <jfs>
Project Administrator
Sat 29 Sep 2012 08:47:10 AM UTC, original submission:

Very large home directories cause the dormant account check to waste CPU time by finding all modified files and passing them to wc for counting. As a single modified file is sufficient to mark an account as non-dormant just stop checking once it is found:

[ `find /home/user/ -mtime 60 | wc -l` -eq 0 ]

[ `find /home/user/ -mtime 60 | head -n 1 | wc -l` -eq 0 ]

Arran Schlosberg <aschlosberg>


Attached Files
file #26665:  check_accounts.patch added by aschlosberg (529B - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jfs (Posted a comment)
  • -email is unavailable- added by aschlosberg (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-04 jfs Open/ClosedOpen => Closed
    2012-09-29 aschlosberg Attached File- => Added check_accounts.patch, #26665

    Back to the top

    Powered by Savane 3.3