From: Bob Stockler <b...@trebor.iglou.com> Subject: Re: Users Can't Login on the Console (tty01) Date: Tue, 14 Nov 2006 11:18:03 -0500 Message-ID: <20061114161803.GA13835@trebor.iglou.com> Top Post . . . Situation resolved. When upgrading from SCO OSR 5.0.6 to OSR 6, one of my startup scripts (/etc/rc2.d/S99remprt) was no longer useful, so it was deactivated by making these two lines the first lines in that file: #!/bin/sh exit 0 Recently, when I was planning to change root's login shell to be /bin/ksh I was advised that it might be wise to see that all startup scripts had #!/bin/sh as their first line. It must have been at that time when I edited /etc/rc2.d/S99remprt I accidently changed its 1st line to be: $!/bin/sh (changing the # to be $). So, when starting up, this caused a shell to run on tty01, because (I'm told) the /bin/sh executing the scripts saw the $! as an argument where $! was the PID of the last process ran in the background and therefore NUL, so the shell just ran, attached to tty01. The file that contained all of the info about my attempted logins on tty01 was /etc/rc2.d/messages/S99remprt.log - an unintentional logging (phishing) by me of mine. Sherlock Holmes (aka Jean-Pierre Radley) got on my system and did an 'lsof' and 'ps' and a little other investigating disclosing the root of the problem (user error - I'll never know how I accidently changed that # to a $). Bob (who thanks all who responded to my plea for help) Bob Stockler wrote (on Sun, Nov 12, 2006 at 03:06:51PM -0500): | System: SCO OSR6 (MP1, OSS702a, OSS702b and MP2) | | Problem: No user can log in on the console (tty01). | | This just started recently, after a reboot following a kernel | panic. The Software Manager (custom) has no complaints after | verifying all software installed on the system. | | All users can log in on tty02-tty12 and, root has no problem | logging into single user mode, but in multiuser mode . . . | | At the initial "login:" prompt I must type each character of | the user name and the [Enter] key twice before the "Password:" | prompt appears. | | After typing in the password I must press the [Enter] key two | times. I doesn't matter if I single or double strike the | characters in the password, I always get: | | Login incorrect | | Wait for login retry . | login: _ | | At this point it accepts single striking the characters in the | user name, but the "Password:" prompt never appears. I finally | get: | | Login timed out | | Wait for login exit: | | after which the screen clears, the initial "login:" prompt | reappears, and the cycle repeats itself. | | If I press [Enter] before seeing the "timed out" error message | I simply get another "login:" prompt. Entering the user name | at it evokes the same behavior as did the previous instance. | | I verified for myself that 'getty' is accepting the user name | properly (whether entered with single or double key striking) | by executing this script while trying to login on tty01: | | #!/bin/ksh | while : | do sleep 1 ; date ; ps -ef | grep console | grep -v ttyp4 | done > /tmp/report | | and seeing these (edited) results in the output file: | | Sun Nov 12 09:46:26 EST 2006 | root 10159 1 0 16:22:34 console 00:00:00 /etc/getty -n tty01 sc_m | Sun Nov 12 09:46:27 EST 2006 | root 10159 1 0 16:22:34 console 00:00:00 /bin/login root | Sun Nov 12 09:47:29 EST 2006 | root 19067 1 0 09:47:29 console 00:00:00 /etc/getty -n tty01 sc_m | Sun Nov 12 09:47:45 EST 2006 | root 19067 1 0 09:47:29 console 00:00:00 /bin/login root | Sun Nov 12 09:48:46 EST 2006 | root 19456 1 0 09:48:46 console 00:00:00 /etc/getty -n tty01 sc_m | | The SCO Knowledge Base offered no help. Can YOU help? | | Bob | | -- | Bob Stockler +-+ b...@trebor.iglou.com +-+ http://members.iglou.com/trebor -- Bob Stockler +-+ b...@trebor.iglou.com +-+ http://members.iglou.com/treborIf this page was useful to you, please click to help others find it:
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