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

Submitter:  Arran Schlosberg <aschlosberg>
Submitted:  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>
Group 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:

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

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

Arran Schlosberg <aschlosberg>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-3230.
    Corresponding source code