Re: X11 forwarding after su'ing

From: Craig M. Dupree (cdupree_at_austin.rr.com)
Date: 04/30/03

  • Next message: Ben Lake: "RE: sshd timeout?"
    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


  • Next message: Ben Lake: "RE: sshd timeout?"

    Relevant Pages

    • Re: Desk top missing
      ... user (so the new userid can sudo). ... data to the now recreated username. ... Log in as newuser, you should get a "clean" desktop. ... You should have lots of churning for awhile. ...
      (Ubuntu)
    • Re: Desk top missing
      ... user (so the new userid can sudo). ... data to the now recreated username. ... Log in as newuser, you should get a "clean" desktop. ... You should have lots of churning for awhile. ...
      (Ubuntu)
    • Re: [sudo-users] How to disable ( deny ) user to change the password of root
      ... # Validate that a username was given as an argument ... In this case "man sudo sudoers". ... What I mean with my comments on preferring absolute paths is that in the ...
      (Fedora)
    • Re: Remotely managing a laptop
      ... and sudo won't let me do operations such as mv which I ... able to mount the drive with the username root with a valid ... You should be logging into the remote computer with SSH and manipulating ...
      (comp.sys.mac.system)
    • sudo - mail_always in sudoers file breaks crontab
      ... I check and root could still edit the crontab - sudo crontab - l worked ... Syslog priority to use when user authenticates unsuccessfully: ... Set the LOGNAME and USER environment variables ... Authentication timestamp timeout: 5 minutes ...
      (SunManagers)