Possible? User auto-lockout after failed num of logins via X
Dear all,
I'm on Ubuntu Hoary 5.04. I need to have the following feature to control the amount of time a user can logon to the system. For example, after 3 hours the system would warn that its logging out in 5 mins and the boots the user to the login screen and not let the user login again till maybe the next day or a new password is made. Another howto I'm looking for is one where it will lock out the particular user for an hour or 2 if he/she tries to attempt to crack any OTHER user's password. Is it possible? Anyone know of any HOWTOs? Thanks a lot peeps! |
Using a PAM (Pluggable Authentication Module) plugin. Have a look here http://www.kernel.org/pub/linux/libs...-6.html#ss6.24
Also, look at the files in /etc/pam.d |
You could maybe manage the first senario by scheduling a cron job for 3 hours in the future that will do a 'write <login> "Logging out in 5 minutes..." followed by a little sleep and a logout. Then, using PAM again, age the password every day.
|
All times are GMT -5. The time now is 08:18 AM. |