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 authentification 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: NonePriority: 3 - Low
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

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>

 

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
  • -unavailable- added by aschlosberg (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Sep 2012 08:47:10 AM UTCaschlosbergAttached File-=>Added check_accounts.patch, #26665

    Back to the top


    Powered by Savane 3.1-cleanup