(This primarily references SCO Unix though part of it applies to any Unix/Linux OS).
SCO Unix can lock ttys administratively or for failed logins. This prevents any further logins on that tty. An administrator might do that to lock out a particular modem line, or to lock out a specific terminal at certain times of day.
Tty's can also be locked for too many unsuccessful logins. Typically this is set for a high number: it might require 99 failed logins before the lock is applied (the number of failed or unsuccesful logins can be set using Scoadmin). The purpose of this is security: failed logins might indicate a brute force password guessing attack. More often, it simply means a stuck keyboard, either because it is defective or because someone accidentally left a book on the keyboard.
Once locked, no one can login on that tty until the administrator removes the lock. The root user can login at the console even if it is locked if /etc/default/login contains (for example) "OVERRIDE=tty01". The unlocking can be done with "scoadmin" (scoadmin->System->Terminal Manager) , but it can also be done from the command line using ttyunlock (http://aplawrence.com/Detective/ttylocked.html)
A specific user can also be locked out - that applies to any tty and is a different message. Unlock with "passwd -u username". If that doesn't work, try
usermod -x "{administrativeLockApplied 0}" -x "{unsuccessfulLoginAttempts
0}" username
It's easy to see if tty's or users are locked by looking for the strings "u_lock" in the sub-files of /tcb/files/auth and the string "t_lock" in /etc/auth/system/ttys.
Other ways to restrict or prevent logins: (these apply to any
Unix/Linux OS. not just SCO)
How do I
restrict logins?.
How can I
prevent root logins over telnet?
How
can I restrict who can login with ssh?
More Articles by Tony Lawrence
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar