LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-26-2010, 01:54 PM   #16
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354

A little "trick" I use when I want to run a GUI as root:
Code:
$ sudo su
Password:

# startx -- :1 &>/dev/null &
That starts a new instance of the X-server of the second available tty logged in as root. (Actually, logged in as whoever was logged in to the terminal session when the startx command was executed. I use this option fairly often when I want to preempt my wife's system (by logging in as myself) for maintenance without disturbing whatever she's running.)

Notes:
  1. I avoid using a Web browser whilst in a "root" GUI.
  2. The other X-server will continue to run on the TTY to which it was connected. Usually you can switch between running servers with the appropriate <ctrl>-<alt>-<F[1-10]> key combination. (You do have to have the "DontVTSwitch" set off in the ServerOptions stanza of the xorg.conf file you're using for this to work. It defaults to "on" in version 4 of X.) If the VT switch doesn't work, logging off should revert you to the prior terminal.)
  3. This is handy if you like to use different window manages for different things. You can specify the window manager to be used on different ttys with different .Xclient.<hostname>:<tty_sequence_number> files in your home directory. For example, here's what I have on this laptop:
    Code:
    $ for f in .Xclients-dv9810us\:*;do echo;echo ---- $f;echo;cat $f;done
    
    ---- .Xclients-dv9810us:0
    
    #! /bin/bash
    WM="startkde"
    WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"
    for p in $WMPATH ; do
            [ -x $p/$WM ] && exec $p/$WM
    done
    exit 1
    
    ---- .Xclients-dv9810us:1
    
    #! /bin/bash
    WM="gnome-session"
    WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"
    for p in $WMPATH ; do
            [ -x $p/$WM ] && exec $p/$WM
    done
    exit 1
    
    ---- .Xclients-dv9810us:2
    
    #! /bin/bash
    WM="startxfce4"
    WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"
    for p in $WMPATH ; do
            [ -x $p/$WM ] && exec $p/$WM
    done
    exit 1
    
    ---- .Xclients-dv9810us:3
    
    #! /bin/bash
    WM="karmen"
    WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"
    for p in $WMPATH ; do
            [ -x $p/$WM ] && exec $p/$WM
    done
    exit 1
 
Old 07-26-2010, 04:03 PM   #17
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
why not just launch nautilus or ( kde dolphin ) as root
boot as a normal user and in bash run
Code:
su -
--- password ---
nautilus
the " - " is needed

ps make your ROOT theme VERY VERY different from your normal user so no a very quick glance you can SEE that it is running root.

there is really no need to login is root at boot.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
" Root Logins not allowed" centOS 5.2 yashgoley Linux - Newbie 16 09-17-2009 07:51 PM
root -"You are not allowed to access the system configuration" lynnevan Slackware 20 02-17-2008 09:12 AM
Only root logins allowed?? rakamaka Linux - Software 4 10-12-2006 10:51 AM
(echo -n "standby" > /sys/power/state) only allowed for root? brynjarh Debian 5 02-14-2005 09:08 AM
Root Logins are not allowed martincho Debian 10 01-30-2005 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:20 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