You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, April 9th 2004, 8:42pm

Switching to a different user with out logging out

I use KDE 3.2 on a Mandrake 9.2 install. What I'm trying to figure out is how to remain logged in with the KDE desktop etc., and be able to have another user log in as well from the same keyboard/monitor with a full desktop. The reason is, that I'll often leave my machine, say in the morning and I'll forget to log off, or I'll leave a job running. A while later my wife comes along and wants to log in. Now she gets a locked workstation. It would be nice if she could do something along the lines of XP's switch user thingy. I know, I hate to make a comparison to windoze, but there it is.

I'm hoping this is some simple trick I just haven't come across. :?

2

Friday, April 9th 2004, 10:25pm

Re: Switching to a different user with out logging out

Quoted

Original von RedSkier

It would be nice if she could do something along the lines of XP's switch user thingy. I know, I hate to make a comparison to windoze, but there it is.

I'm hoping this is some simple trick I just haven't come across. :?

I just *love* making comparisons to windows if I can say:
On UNIX / Linux you could already do this for ages,
long before windows got that ;-)

When correctly configured the KDE screenlock's password dialog
has an additional button and the K Menu has an additional menu entry,
both labelled "Start New Session". So you can just keep locking
your screen the way you used to. If your wife clicks the button a new kdm
login window comes up where she can log in independently.
On a typical installation you can switch between the sessions
with Ctrl-Alt-F7 and Ctrl-Alt-F8

I don't know whether there is a GUI for Mandrake to configure this,
for SuSE it's configured by default.

In case you configure it manually
here are the important pieces I know of:
- AFAIK you need to be running a display manager
(graphical login screen, kdm)
- You must have more than one X display configured in the
Xservers file.

My Xserver file is located in
/usr/local/kde/share/config/kdm/Xservers
and looks like this:

-------------------
:0 local@tty0 /usr/X11R6/bin/X -dpi 100 -nolisten tcp vt7
:1 local@tty1 reserve /usr/X11R6/bin/X :1 -dpi 100 -nolisten tcp vt8
:2 local@tty2 reserve /usr/X11R6/bin/X :2 -dpi 100 -nolisten tcp vt9
:3 local@tty3 reserve /usr/X11R6/bin/X :3 -dpi 100 -nolisten tcp vt10
-------------------

This configures (up to) four X displays that can
be accessed using Ctrl-Alt-F7 to Ctrl-Alt-F10

Note that the paths must be adapted for your system.
The "locate" and "which" commands may help you...

e.g.
"locate Xservers",
"which X"

3

Monday, April 12th 2004, 7:00am

Re: Switching to a different user with out logging out

OK, I made the suggested mods to the kdm config file and also did the same to /etc/X11/xdm/Xservers . And I'm pretty sure that I have the four displays working - tty0 thru tty3. But I'm not seeing any means to get another login from tty1,2 or 3. You mention that SuSe has this configured by default. So, it's just a matter of figuring out where to set the 'Start New Session' is turned on.

Thanks for the help, I appreciate it.

4

Monday, April 12th 2004, 5:04pm

Re: Switching to a different user with out logging out

Quoted

Original von RedSkier

OK, I made the suggested mods to the kdm config file and also did the same to /etc/X11/xdm/Xservers . And I'm pretty sure that I have the four displays working - tty0 thru tty3. But I'm not seeing any means to get another login from tty1,2 or 3. You mention that SuSe has this configured by default. So, it's just a matter of figuring out where to set the 'Start New Session' is turned on.

Thanks for the help, I appreciate it.

What do you mean by "the kdm config file"?
The Xservers file in the kdm configuration directory?

I've seen cases where kdm used the Xservers file
in the xdm directory and others where it took it from
the kdm directory. Have you tried both?

I googled for this problem and I found the answer I had given:
http://lists.debian.org/debian-kde/2004/debian-kde-200403/msg00186.html

Sorry, if this doesn't work and Mandrake doesn't have a
GUI option for that either then I have no idea what else to do.
Maybe you could try a Mandrake support forum?

5

Monday, April 12th 2004, 5:45pm

Re: Switching to a different user with out logging out

Sorry for the poor term there. Yes, by "kdm config file" I meant the Xservers file that you had referenced. And yes, I found that there was a Xservers file in both <path>/xdm and <path>/kdm directories and so, made the same changes to both.

And yes, your help ultimately did work exactly as you said it would. Strangely enough, when I posted last night, I wasn't seeing any 'start new session' feature being turned on but this morning - lo and behold, there it was. It works perfectly as advertised. Not sure what was up with the apparent delay - I had logged in and out and rebooted a few times - but I'm not too worried about that.

Thank you for the help - I appreciate it. :D

6

Tuesday, April 13th 2004, 7:29pm

Re: Switching to a different user with out logging out

Quoted

Original von RedSkier

And yes, your help ultimately did work exactly as you said it would. Strangely enough, when I posted last night, I wasn't seeing any 'start new session' feature being turned on but this morning - lo and behold, there it was. It works perfectly as advertised.

Good to hear :)

7

Wednesday, April 14th 2004, 12:38am

I just learned something new ;)

Thanx for sharing.......... :)

- - - - - - - - - - - - - - -
PS: For Slackware users, the Xservers file is located by default in /opt/kde/share/config/kdm/Xservers
How long a minute is depends on which side of the bathroom door you're on.

8

Wednesday, April 14th 2004, 1:28am

Further Update

After changing my Xservers file as suggested by cmbofh, I noticed after logging back in that the everything was displayed in a larger size than before......................so I changed the -dpi option to 120 instead of 100, which made it even worse..............................Then I decided to drop the -dpi option altogether and it worked, everything is the same size as it was originally...

To make it clearer, here's what my original configuration in Xservers looked like: [code:1]&#58;0 local@tty1 /usr/X11R6/bin/X vt7 [/code:1]
Okay, here's my final change which seems to be working (so far ;)): [code:1]&#58;0 local@tty0 /usr/X11R6/bin/X -nolisten tcp vt7
&#58;1 local@tty1 reserve /usr/X11R6/bin/X &#58;1 -nolisten tcp vt8 [/code:1]
All I did was to drop the '-dpi 100' to make everything the same size as originally...

Hope this will be helpful to others :)


- - - - - - - - - - - - -
PS: I only added one more xsession for a total of two instead of having four..........I'm the only user on my PC and I thought it would be a good idea to have a single backup display, just in case ;)
How long a minute is depends on which side of the bathroom door you're on.