Re: howto make root emacs open in X
On Sat, Jan 10, 2009 at 03:36:33PM +0100, Axel Freyn wrote:
> On Sat, Jan 10, 2009 at 03:19:03PM +0100, Tom Rauchenwald wrote:
> > Harry P <firstname.lastname@example.org> writes:
> > > I'm running a recently installed lenny with default xfce desktop.
> > >
> > > While working in the X session I often ssh to root@localhost for a
> > > root shell and have one running as I work. I'd like to be able to
> > > open emacs from that root shell and have the emacs instance open in
> > > the X session instead of a inside the root shell in console mode as it
> > > currently does.
> > ssh -X root@localhost
> Why do you use ssh to connect to the local machine? I would propose to
> use "su" to switch to a root account. In order to allow root the access
> to the X-Server, it is sufficient to set the environment-variables
> , "username" beeing the user who is running the X-session.
I was thinking the same but as I checked my sid machine, I have
Important here is new user's XAUTHORITY should be the same, I think.