LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-10-2004, 12:17 PM   #1
Hevonen
LQ Newbie
 
Registered: Mar 2004
Location: Finland
Distribution: Mandrake 9.2
Posts: 10

Rep: Reputation: 0
Is there a way to change user without logging out?


Hi, I just would like to get an answer and some instructions if there is a way to change users in Mandrake Linux 9.2 without logging out the previous user. Like leaving the first user on the background like in Windows.

Thanks for your time
 
Old 03-10-2004, 12:22 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
You could use su or sudo.

$ su - <username> or
$ su <username>

If you are a normal user, the password of the user will be asked. Only root can do this without having to give a password.

The difference between su and su -: The first inherits the settings of the original shell, the second makes it a login shell (just like logging in the first time).

I don't use sudo (never have), so someone else needs to explain this.

Hope this helps.
 
Old 03-10-2004, 12:24 PM   #3
Hevonen
LQ Newbie
 
Registered: Mar 2004
Location: Finland
Distribution: Mandrake 9.2
Posts: 10

Original Poster
Rep: Reputation: 0
Okay thanks for helping, ill try that one
 
Old 03-10-2004, 12:27 PM   #4
Hevonen
LQ Newbie
 
Registered: Mar 2004
Location: Finland
Distribution: Mandrake 9.2
Posts: 10

Original Poster
Rep: Reputation: 0
hmm well, I think I should have added that im using KDE and when i type that it only changes the user in Konsole, not in the whole graphical interface... :/ So basicly I would need a new answer. I think.. Or some adjustment to that one
 
Old 03-10-2004, 12:41 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
If you have a window manager(wm) running (KDE in your case) you have a few options:

- Start another wm session after becomming the other user in a terminal (not my choice)
- Logout from current wm to commandline prompt. I do think that your box starts with KDE (no commandline first and manually start the wm), so you will be presented some window for login in, and not go to the comman line.

This leaves the following:

You can go to a different 'terminal' while running a wm.

With the following key-combo you can goto a different terminal:

ctrl-alt-F<1-6>

The F stands for the function key, 1 to 6 are the 6 terminals that are present (depends a little on your settings).

So ctrl-alt-F2 would give you a new terminal, your current user running the kde session is still active and you can return to it by alt-F7

You can do anything you want in the new terminal. Running commands, starting a wm, killing a frozen wm etc, etc.

If your box has the power you could run 6 kde sessions, belonging to different users. All at the same time.

If things are still not clear: Keep asking

Last edited by druuna; 03-10-2004 at 12:42 PM.
 
Old 03-10-2004, 06:34 PM   #6
Hevonen
LQ Newbie
 
Registered: Mar 2004
Location: Finland
Distribution: Mandrake 9.2
Posts: 10

Original Poster
Rep: Reputation: 0
I tried what you said and it worked out fine but... when i tried to run commands that normally work like loading mozilla, firefox, gaim, amsn...they just didnt work, it said "cannot display something.." or "command not found"
or "Server is already active for display 0"
:/ dunno whats wrong.

Last edited by Hevonen; 03-10-2004 at 06:41 PM.
 
Old 03-11-2004, 04:42 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
This error is telling you that display 0 is used, which is correct. The KDE session you first started claimed that one.

You don't mention which option you tried, I assume it's the last one.

Are you able to start a new windowmanager (KDE in your case)?? If not try soemthing like:

startx -- :1.0
This will try to start a new X session on display 1 (1.0 to be precise).

I don't use KDE myself, but I've heard of the possibility to 'reserve' extra KDE sessions. I thought it was the Xservers file somewhere in the KDE tree. I know that's not too precise, but I'll bet there are enough sites on the net that can help you with that

Hope this gets you going again.
 
Old 03-11-2004, 06:12 PM   #8
Hevonen
LQ Newbie
 
Registered: Mar 2004
Location: Finland
Distribution: Mandrake 9.2
Posts: 10

Original Poster
Rep: Reputation: 0
Im trying Fedora atm, Ill install mandrake on my other comp in a few days and check out your suggestion, thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
No echo for user id when logging in LORDL Linux - General 1 07-28-2005 01:21 PM
Logging in as non-privileged user TastyWheat Linux - Security 2 09-27-2004 02:58 AM
Prevent a user from logging into X? sorrodos Linux - Security 6 06-26-2004 04:30 PM
user logging problem brijesh Linux - General 1 07-10-2003 11:36 AM
How do I change the background images when logging onto the Xserver? LinuxQuest01 Linux - General 4 06-18-2002 10:22 AM


All times are GMT -5. The time now is 12:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration