[newbie] Run My KMail While Logged Under Root?

2001-07-08 Thread Curtis Matthiesen

Hi there,

I was wondering if there is a way that I can run my Kmail account while I'm 
logged under as Root.

For example if there is a switch of some sort that'll allow me to do this, 
so that way if I am logged under Root I don't have to
Ctrl + Alt + Backspace and relogon just to get to my email.

TIA

Curtis
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





Re: [newbie] Run My KMail While Logged Under Root?

2001-07-08 Thread etharp

I would like to add that I find one of the easist way to move between root 
tasks and a user Xsession is; (Crtrl+alt+f1[or any other f1 to f6 key] all at 
the same time) and login the text console as root. do what i need and then 
Crtrl+alt+f7 to get back into my Xsession as a user.

On Sunday 08 July 2001 19:08, Lars 'Darmok' Heiermann wrote:
 On 08 Jul 2001 07:52:33 -0700, Curtis Matthiesen wrote:
  Hi there,
 
  I was wondering if there is a way that I can run my Kmail account while
  I'm logged under as Root.
 
  For example if there is a switch of some sort that'll allow me to do
  this, so that way if I am logged under Root I don't have to
  Ctrl + Alt + Backspace and relogon just to get to my email.

 Yes there are ways to do that.
 For example this:
 open a xterm / eterm / whatever
 then type in

 xhost +localhost

 (to let applications connect to the x server that other users start on
 your machine)
 then

 su - user

 to switch to the account 'user' (you should use your username here)
 then

 declare -x DISPLAY=localhost:0.0

 to set the display the started X applications should connect to

 and then

 kmail

 to start your kmail.

 But I see no reason to run X as root, better would be to login as normal
 user and if you need to do things as root use

 su -

 to switch to root.

 HTH

 Lars Heiermann