Re: X11 forwarding after su'ing
From: Craig M. Dupree (cdupree_at_austin.rr.com)
Date: 04/30/03
- Previous message: Peter: "Re: X11 forwarding after su'ing"
- In reply to: Ricardo Anguiano: "Re: X11 forwarding after su'ing"
- Next in thread: Hoerauf, Roy: "RE: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 19:42:12 -0500 To: Ricardo Anguiano <anguiano@codesourcery.com>
On Mon, Apr 28, 2003 at 04:15:16PM -0700, Ricardo Anguiano wrote:
> "Hoerauf, Roy" <Roy.Hoerauf@cwusa.com> writes:
>
> > I am having a little problem figuring this out.
> >
> > I ssh to a Solaris box. X11 forwarding works, no problem here. I
> > 'su' to a different user.
> >
> > What do I have to do to get X11 forwarding to work for the 'su'
> > user. I think it is just some configuration changes, but I have not
> > been able to figure it out.
>
> I don't know if solaris' su has this option, but try `su -m'. It
> preserves the environment variables.
sudo does this. Ie, sudo -u username -s gets you a shell as username,
but then also leaves your environment intact.
Craig
- Previous message: Peter: "Re: X11 forwarding after su'ing"
- In reply to: Ricardo Anguiano: "Re: X11 forwarding after su'ing"
- Next in thread: Hoerauf, Roy: "RE: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|