Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I have a server running RH9 (2.4.20-8smp). When I logout from console, I dont get the login prompt back.. I have used up all the alt login consoles
I can ssh to the machine, but I need to work from the console often. ps doesnt show any extra shell processes running, so its not the shell thats hanging.. Is there a way to get the login prompts back without rebooting?
Nope, all pretty standard stuff.. sourcing any of the *shrc files doesnt hang.. Plus I think if .bashrc was incorrect, exiting from ssh would have hung too, no? but ssh works fine.
You only see these settings if nobody is logged in on the console (remote connections do not influence this). Here's an example with nobody on the console:
This is that entry, a bash shell is running on that tty.
If all of your tty's are active (although you tried to log off) you will not see any of the above mentioned 00:00:00 /sbin/agetty tty entries.
Maybe the following will give a clue about what is happening on your box:
$ ps -ef | grep tty[1-6]
You could end up with a (very) long list depending on what was started and how much was 'killed' during the log-off process. It should show you the proces(ses) that are hanging the respawn.
Also, try a init q, this will 'restart' init after it reads its 'config' (/etc/inittab).
Hi, Thanks for the explanation.. That clarifies things a lot.. But heres the deal.. I dont see any mingetty OR bash/tcsh processes running.. It probably means bash didnt exit correctly.. I tried "init q" too, doesnt seem to work..
Still thinking about this one...... Interresting problem, although I wouldn't be surprised if the sollution will be found in some small thing.
Ok, I've got a few questions:
1) Do the logfiles show any related messages (mingetty and/or tty related and/or respawning to fast).
2) Can you start a tty by hand ($ /sbin/mingetty tty8) and log on to that tty? You should be able to log on once on that tty and get no prompt after logging out.
Hi, theres nothing strange in the logfiles either.. Cant start /sbin/mingetty tty8.. says operation not permitted in /var/log/messages.. I am at my wits end.. mebbe I shud just wait till the next scheduled reboot next month.. but its damn annoying not to have a shell on the console..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.