Unable to log in to more than 1 virtual terminal at a time
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Unable to log in to more than 1 virtual terminal at a time
I don't know if this is distro specific, config specific, or just me misconfiguring X11, but I am unable to log in to more than one virtual terminal at a time (when X is running, don't know without, haven't tested), which is jarring, because I'm trying to do some sysadmin stuff on my dev box, and would sooner do the sysadmin stuff as root (duh) while using a normal user for the associated browsing and documentation look up, mainly for security.
When I get time, I will test this when X is not running, and post back here. Help is much appreciated.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
I suspect you have to use the appropriate keyboard shortcuts to get different terminals and you have to use the appropriate commands to run the parallel X Window sessions.
Let's assume you started X Window with 'startx' command. In such a case the first terminal is locked by X11. To reach the other terminals you have to use the appropriate keyboard shortcuts. For example 'Ctrl+Alt+F2' for the second one, 'Ctrl+Alt+F3' for the third one, etc. After login on the second terminal you can start parallel X Window session using the command 'startx -- :1' for the second session, after login on the third terminal you can start the consecutive parallel X Window session using the command 'startx -- :2' for the third session, etc. To go back to the first session use the keyboard shortcut 'Ctrl+Alt+F7' and to go forth to the second session use the keyboard shortcut 'Ctrl+Alt+F8'.
To recapitulate: you have six terminals to work -- from 'Ctrl+Alt+F1' to 'Ctrl+Alt+F6'.
My problem is not getting the individual X sessions, my issue is the fact that bash will return an error, complaining that I have an incorrect username/password, meaning that 2 users cannot be logged in simultaneously. At first guess (only speculation), something is locking the user database file, meaning that bash can't actually get to it to log me in. But that doesn't explain why I can log in over SSH, with X running...
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
You need to edit the /etc/inittab file and at the point where it reads:-
# These are the standard console login getties in multiuser mode:
c1
Code:
:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
edit it to read:-
Code:
# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
In Slackware 13.37 inittab is a part of sysvinit-scripts-1.2-noarch-43.txz package and by default has the section:
Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
So there's no need to edit /etc/inittab in order to get these settings.
Unfortunately that doesn't resolve the OP's problem.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
My first problem I reported here concerned the second user and Midnight Commander. The program worked well for the first user but refused to work well for the second one. As it turned out I created both users using useradd command. When I removed them and recreated them using adduser command the problem disappeared.
If you used useradd command too you can try to use adduser command instead.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Could it be a keyboard layout problem? I ask because on my Slack install I seem to have a US keyboard layout on the ttys but GB (the correct one) for the display manager. This means, because one of my passwords has a character that is in a different place on each layout, it seems I typed my password wrong.
Just done a quick experiment on boot, the problem goes away when X isn't running. Therefore, logical deduction means that X is causing a problem. I have my keyboard in UK layout on the TTYs, and US layout in X, but that shouldn't make a difference, because the passwords are the same keys regardless.
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309
Rep:
@Richard Cranium
My question from post #5 that you evaluated as useless was related to vdemuth's advice from post #4. As it turned out in post #6 CWood uses Slackware 13.37. So in post #9 I explain that there is no need to do in Slackware 13.37 the changes suggested by vdemuth in post #4 because these settings are implemented in that Slackware version by default. So vdemuth took into consideration some older Slackware version.
My useless question was caused by useless vdemuth's advice.
@vdemuth
In fact I don't think your advice was useless as well as I don't think my question was useless. I called your advice useless in order to explain to Richard Cranium my question which he evaluated as useless.
To recapitulate: I think Richard Cranium's remark is useless.
Last edited by w1k0; 05-18-2012 at 10:08 AM.
Reason: erratum
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
w1k0,
No offence taken. I go back tp Slack 10 where the No. of virtual terminals was limited to 2 and hadn't even noticed that was no longer the default TBH.
Anyway, for the OP, if he is using XFCE, is it safe to presume that he uses kdm as a login manager, in which case he should be able to just run a switch user from the login prompt.
Might be worth his while to login to KDE, and then try a switch user from that. Not certain how useful or otherwise that might be, but hey, an extra info is a help right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.