Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-28-2004, 09:36 PM   #1
LQ Newbie
Registered: Jun 2004
Posts: 15

Rep: Reputation: 0
how do i change to root while in GUI?

I find it annoying, that when i want to change to root while im in KDE or Gnome, that i have to logout of the X, then switch user to root, then load X back up, so that the root user is using the GUI. I know you can bring up a terminal while in X and type the su command, but that only switches to root only in the currently opened terminal and not the GUI.

How can you make it so you can switch to root in the GUI and not just a terminal window without loging out of X (KDE or Gnome)?
Old 06-28-2004, 09:57 PM   #2
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 478

Rep: Reputation: 41
I don't know if you can, but if you want to run a program as root in the current X session then use the su and then run the program from the command line.

Old 06-28-2004, 11:42 PM   #3
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
couvier, what distro are you using and what is it that you are trying to do? Why can't you do what you want in a terminal? It is probably alot easier.
Old 06-29-2004, 09:34 AM   #4
LQ Newbie
Registered: Jun 2004
Location: New York City
Distribution: Debian
Posts: 21

Rep: Reputation: 15
Why would you want to do that?

I use the handy [Ctrl]+[Alt]+[Fxx] combo. XX being a number from 1 to 12. And the [Alt]-[F7] combo to get out. You get a good full screen shell while still keeping the GUI handy.

That probably didn't answer the question, but, well...
Old 06-29-2004, 10:24 AM   #5
Senior Member
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
After you su in a terminal, you should be able to open up a GUI program from that terminal. If you have enough system resources, you could also
login as root and
startx -- :1
This would create a gui on
to switch to the other gui
Old 06-29-2004, 10:53 AM   #6
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 31
You can use xnest, which is included in gnome. It will be under your menu in Systemtools-->NewLogin in a nested window.

But you really should just do it all from the terminal. It's your friend!


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change my desktop/GUI? donJulio Slackware 4 09-17-2005 11:42 AM
How do you change what GUI is used in x-windows? Apocalypse King Linux - Newbie 5 09-21-2004 02:37 PM
how can I change to root user in the KDE GUI nicoc Linux - Newbie 3 07-23-2004 12:01 PM
How do I change my X Windows GUI? defubar Linux - Newbie 2 02-03-2004 04:47 PM
How can i change the default GUI ? zokter Linux - Newbie 2 09-27-2003 07:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:48 AM.

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