Re: X Applications as Root User

2004-07-19 Thread Ricky Clarkson
Another option is to do xhost +localhost as a normal user, then export
DISPLAY=:0.0 as root.

Assuming your display is :0.0

For info on xhost security, man xhost

Another, slightly ridiculous option is to ssh -X [EMAIL PROTECTED]

On Sun, 18 Jul 2004 10:11:27 +0200, Andreas Janssen
<[EMAIL PROTECTED]> wrote:
> Hello
> 
> Kenneth Jacker (<[EMAIL PROTECTED]>) wrote:
> 
> > Though I know it is discouraged, I have a single-user 'sarge' system
> > protected by 'iptables' on which I want to run X11 applications when
> > logged in as 'root'.  I can use 'sudo' (e.g., "% sudo xlogo"), but I'd
> > rather directly access the apps as 'root' (e.g., "# xlogo").
> >
> > Though I've searched, I have not found!
> 
> What is your error message? Do you "xlibs: connection refused" error? Do
> you log into X as a user, and opened a root shell using "su"? You can
> allow the super user to access your X session:
> 
> # export XAUTHORITY=/home/kenneth/.Xauthority
> 
> After that you can start the programs as root.
> 
> Or you install some wrapper like sux, gksu oder kdesu. They don't need
> any kind of configuration like sudo does.
> 
> best regards
> Andreas Janssen
> 
> --
> Andreas Janssen <[EMAIL PROTECTED]>
> PGP-Key-ID: 0xDC801674 ICQ #17079270
> Registered Linux User #267976
> http://www.andreas-janssen.de/debian-tipps.html
> 
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: X Applications as Root User

2004-07-18 Thread Andreas Janssen
Hello

Kenneth Jacker (<[EMAIL PROTECTED]>) wrote:

> Though I know it is discouraged, I have a single-user 'sarge' system
> protected by 'iptables' on which I want to run X11 applications when
> logged in as 'root'.  I can use 'sudo' (e.g., "% sudo xlogo"), but I'd
> rather directly access the apps as 'root' (e.g., "# xlogo").
> 
> Though I've searched, I have not found!

What is your error message? Do you "xlibs: connection refused" error? Do
you log into X as a user, and opened a root shell using "su"? You can
allow the super user to access your X session:

# export XAUTHORITY=/home/kenneth/.Xauthority

After that you can start the programs as root.

Or you install some wrapper like sux, gksu oder kdesu. They don't need
any kind of configuration like sudo does.

best regards
Andreas Janssen

-- 
Andreas Janssen <[EMAIL PROTECTED]>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: X Applications as Root User

2004-07-17 Thread John Summerfield
Kenneth Jacker wrote:
Though I know it is discouraged, I have a single-user 'sarge' system
protected by 'iptables' on which I want to run X11 applications when
logged in as 'root'.  I can use 'sudo' (e.g., "% sudo xlogo"), but I'd
rather directly access the apps as 'root' (e.g., "# xlogo").
 

I've had no difficulty doing that without making any configuration 
changes at all. Right now Ihave root running X applications on one, 
two,three four - yes - four different boxes. One's running KDE, the 
others FVWM.

--
Cheers
John
-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



X Applications as Root User

2004-07-17 Thread Kenneth Jacker
Though I know it is discouraged, I have a single-user 'sarge' system
protected by 'iptables' on which I want to run X11 applications when
logged in as 'root'.  I can use 'sudo' (e.g., "% sudo xlogo"), but I'd
rather directly access the apps as 'root' (e.g., "# xlogo").

Though I've searched, I have not found!

Which config file must I change?  I thought maybe
"/etc/X11/xserver/SecurityPolicy", but I'm not sure ...

Thanks,

-- 
Prof Kenneth H Jacker   [EMAIL PROTECTED]
Computer Science Dept   www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC  28608  USA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]