book graphic unix and linux troubleshooting guide

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







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.


Hate these ads?

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.

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






ad

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


ad

Views for this page
Today This Week This Month This Year  Overall
1111 911

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

pavatar.jpg
More:




Unix/Linux Consultants


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering


http://www.schewanick.com SCO Unix, Solaris, Linx (various), PHP, MySQL, Apache, uniBasic, dL4, Perl, System Administration and more....


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282



Twitter
o @akaSylvia Chard only seems endless until you put it in the fry pan.. then it seems like you really should have grown more :-) 4:04 PM Apr 16th 2008 in reply to akaSylvia








Change Congress