APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds RSS Feeds

TTY Locked-Answer

This is the answer to TTY Locked

SCO OSR5 will lock out a tty after too many unsuccessful logins. That's a security feature, and you can set the number (or disable it entirely) in the SCOAdmin Terminal Manager. Cleaning a keyboard is a great way to generate unsuccesful logins, so that was my first guess.

The user had turned everything off before cleaning, but afterwards the ENTER key was stuck down for a while, and that caused ttyp2 to become locked.

But why could Jim login when apparently no one else could?

It was just a matter of lucky timing. Here's what happened:

When Al (or anyone) telneted to the box, the next available tty was ttyp2, so that was used. The moment Al logged in, he was kicked out because ttyp2 was locked, which made ttyp2 the next available tty again, and the cycle continued.

However, while the login prompt was being displayed, before Al actually logged in, ttyp2 was in use (by login), so ttyp3 became the next available terminal. Jim happened to log in during that period, so he got in successfully. The next person to try would get the available ttyp2 again (SCO OSR5 always uses the lowest available), so they'd get kicked out.

(Article continues after the break)

The simple fix was for Al to make a connection, but not login, then make another connection. His first would tie up ttyp2, so the second would get p3, where he could login and type:

/etc/ttyunlock  ttyp2

Al could have llogged in at the server console too, but that room was locked and a long way from his desk, so we did it this way.

Another command to know for SCO:

usermod -x "{administrativeLockApplied 0}" -x "{unsuccessfulLoginAttempts 0}" username

Publish your articles, comments, book reviews or opinions here!

May 2001 A.P. Lawrence. All rights reserved

If this page was useful to you, please help others find it:  

1 comment

More Articles by - Find me on Google+

Click here to add your comments

Thu Jun 18 15:50:58 2009: 6512   TonyLawrence

This can also happen from a security audit.. I just had a example of that this morning.

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

LOD Communications, Inc.

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.

Publishing your articles here

Jump to Comments

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.

I am a Kerio reseller. Articles here related to Kerio products reflect my honest opinion, but I do have an obvious interest in selling those products also.

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.


This post tagged:

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!

book graphic unix and linux troubleshooting guide

Buy Kerio from a dealer
who knows tech:
I sell and support

Kerio Connect Mail server, Control, Workspace and Operator licenses and subscription renewals