LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-17-2012, 09:56 AM   #1
CWood
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 45

Rep: Reputation: Disabled
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.
 
Old 05-17-2012, 10:13 AM   #2
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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'.
 
Old 05-17-2012, 10:20 AM   #3
CWood
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: Disabled
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...
 
Old 05-17-2012, 10:27 AM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
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
Reboot and your done
 
Old 05-17-2012, 10:29 AM   #5
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Let us know the name and the version of your Linux distribution as well as the type of the installation (for example: full).
 
1 members found this post helpful.
Old 05-17-2012, 10:35 AM   #6
CWood
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: Disabled
Title: Slackware
Version: 13.37
Linux Kernel Version: 2.6.37.6-huge-smp
Installation: Full

And my inittab already says that... Sorry. Thanks for the idea though.
 
Old 05-17-2012, 10:51 AM   #7
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
So you must have previously edited that file then? OOTB, it will read as the first entry. What DE are you using?
 
Old 05-17-2012, 11:34 AM   #8
CWood
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: Disabled
I don't remember editing the file...
I'm using XCFE.
 
Old 05-17-2012, 03:28 PM   #9
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 05-17-2012, 03:50 PM   #10
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
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.

Here's the link to that old thread.
 
Old 05-17-2012, 04:26 PM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
Old 05-18-2012, 07:57 AM   #12
CWood
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-18-2012, 08:48 AM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by w1k0 View Post
Let us know the name and the version of your Linux distribution as well as the type of the installation (for example: full).
Too bad the "no" option is gone from the "Did you find this post helpful?" question.
 
1 members found this post helpful.
Old 05-18-2012, 09:54 AM   #14
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
@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
 
1 members found this post helpful.
Old 05-18-2012, 10:53 AM   #15
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
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?

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Have to log out of a virtual terminal twice in order to exit virtual terminals narnie Linux - Newbie 5 02-24-2010 12:49 AM
unable to auto mount 'shared folder' iin Suse 11.2 virtual machine using Virtual Box marvinudy Linux - Virtualization and Cloud 1 02-03-2010 02:29 PM
Killing the process on a virtual terminal from another virtual terminal. Azazwa Linux - Newbie 8 05-05-2009 12:33 PM
slackware 12 freeze on log out or switch to virtual terminal kentish_lad Slackware 8 10-16-2008 10:19 PM
log in to virtual terminal when startup yenonn Linux - General 5 06-30-2003 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration