On Sun, Feb 09, 2003 at 01:53:10AM +0200, Johan Ehnberg wrote:
> Yeah, I got annoyed because of this too. Anyway it's not a big problem. 
> What happens when you 'su' is that your env.vars. are changed to root's. 
> Thus, apps don't know where the user's X session is. What you can do is 
> use the -p flag for su. 'su -p' will preserve the user's env.vars. for 
> the invoked su session (or login for 'su -'). Now you can run X apps as 
> root.

Yes, but not if you need some of root's other environment - like PATH etc.
I had trouble when I tried running that X-based apt tool that I can't
remember the name of - it couldn't find anything :-(

Richard


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

Reply via email to