Re: Define "logged in as ROOT"

From: Juan Camilo Yanquen (soportesodi_at_SISA-SA.COM)
Date: 01/31/05

  • Next message: Mike Tibor: "Re: ioo / vmo"
    Date:         Mon, 31 Jan 2005 16:07:28 -0500
    To: aix-l@Princeton.EDU
    
    

    I've the next workaround for this "problem":

    login as normal user from remote machine with ssh -X
    normaluser$ echo $DISPLAY
    ej: localhost:10.0
    normaluser$ su -
    root# cp ~normaluser/.Xauthority $HOME/
    root# xclock

    Atentamente,

    Juan Camilo Yanquen
    Soporte pSeries
    SISA-SA

    On Mon, 2005-01-31 at 15:02, Rugen, Len wrote:
    > The current problem is that the package installer is X, but with ssh, I
    > can't su - to root and get a display.
    >
    > > -----Original Message-----
    > > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On
    > > Behalf Of Bob Booth - CITES
    > > Sent: Monday, January 31, 2005 1:52 PM
    > > To: aix-l@Princeton.EDU
    > > Subject: Re: Define "logged in as ROOT"
    > >
    > > On Mon, Jan 31, 2005 at 12:56:01PM -0600, Rugen, Len wrote:
    > > > What does it REALLY mean....
    > > >
    > > > If I login as myself, then su to root (no -), is that good enough?
    > >
    > > You will have root privs, but not roots environment. Some
    > > operations may need
    > > special variables set, etc. If you use the '-' you will
    > > effectively become
    > > the real root user. su'ing to root without the '-' is useful
    > > for some quick
    > > root operations, such as changing ownerships, blowing away
    > > files... Not
    > > always good for running some application command scripts.
    > >
    > > bob
    > >
    >


  • Next message: Mike Tibor: "Re: ioo / vmo"

    Relevant Pages

    • Re: X11Forwarding, ssh -X, and /bin/su
      ... >the DISPLAY variable again after su'ing. ... >but I'm not really tunneled using ssh then, ... You mean NFS, not NIS. ... mapping root to something like "nobody" for the NFS access. ...
      (comp.security.ssh)
    • Re: Run X client with ssh tunnel after su
      ... using the same secure connection that the shell uses. ... the ssh session to the real display host. ... root, root doesn't have the right magic cookie in *its* .Xauthority ...
      (comp.os.linux.x)
    • Re: The history of the name Root (as in superuser)?
      ... > Of course, there are some things that are impossible to do with sudo, such as ... over an SSH connection, running on the remote server sudo'ing to root to run ... then the SSH instance is owned by _me_, so root can't display to it. ...
      (comp.unix.admin)
    • Re: strating ed2k_gui as non-root
      ... If I am starting x as root, ... and try ssh -l qjohn -X localhost ... I should have DISPLAY as 10:0 ... The program 'ed2k_gui' received an X Window System error. ...
      (comp.os.linux.x)
    • Re: launchd und launchctl
      ... Du meinst, wenn Du root warst und hast es per "crontab -e" eingetragen, ... Mutmaßlich hat root einen anderen $PATH als der Normaluser, ... Next by Date: ...
      (de.comp.sys.mac.misc)