Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-19-2005, 08:03 AM   #1
LQ Newbie
Registered: Mar 2005
Distribution: Gentoo
Posts: 1

Rep: Reputation: 0
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!
Old 04-21-2005, 04:55 AM   #2
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Using a PAM (Pluggable Authentication Module) plugin. Have a look here

Also, look at the files in /etc/pam.d
Old 04-21-2005, 05:05 AM   #3
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different user logins, different issues gmgartner Slackware 4 04-21-2005 07:42 PM
3 concurrent logins 4 same user? tyccea Red Hat 4 10-24-2003 01:07 AM
Restriction on user logins klmn1 Linux - Networking 2 05-26-2003 05:40 AM
User Logins TerminalPhreak Linux - Newbie 3 02-28-2003 01:56 PM
X11 display failed logins rangerx Linux - Security 0 09-19-2002 10:39 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration