hello guys, how can one lock an user account after a specific time ?
let's say i want to set locking at 3 days from now, so if the user doesn't log in within 3 days, his account will be automatically locked, if he logs in, his account won't be locked.
i know there are commands like
usermod -L username
to lock account immediately or
chage -E 10/10/2012 username
to set expiration at that time.
but don't know how to set locking after certain time, for example 3 days from now
any suggestions ? thank you