Authentication and SU

From: Pepebuho (pepebuho_at_pananet.com)
Date: 04/02/04

  • Next message: Bill Dearborn: "grub Error 23 'Selected Disk Does Not Exist' - but it does!"
    Date: Thu, 1 Apr 2004 23:34:59 -5
    To: fedora-list@redhat.com
    
    

    Hi.
    I noticed that each time that I execute su and then gedit I get the
    following warning:
    (gedit:2378): GnomeUI-WARNING **: While connecting to session manager:
    Authentication Rejected, reason : None of the authentication protocols
    specified are supported and host-based authentication failed.
    Surfing Google i found the attached solution by Bruce Wolk, nevertheless
    I wonder why does it work. In fact why do we need it at all?
    I am not that good yet with scripts (I am newbie) but it looks
    like it is executing gedit on an new shell session where the contents
    of the current XUAUTHORITY were taken from root's .Xauthority.
    Is it safe? And if that variable is important, why is it not changed
    authomatically
    when I execute su?
    Also, I was checking for .Xauthority on my root directory and I saw not one
    xauthority but several files starting with .xauth
    Thaks!
    Javier
    ------------------------------------------------------------
    http://linux.derkeiler.com/Newsgroups/linux.redhat/2003-09/1193.html

    Save the following script as something, say xroot. Then just
    xroot gedit
    You won't get the error.
    *************
    #!/bin/sh
    if [ $# -lt 1 ]
    then echo "usage: `basename $0` command" >&2
    exit 2
    fi
    su - -c "exec env DISPLAY='$DISPLAY'
    XAUTHORITY='${XAUTHORITY-$HOME/.Xauthority}'
    "'"$SHELL"'" -c '$*'"

    ------------------------------
    /_/
    |O O| pepebuho@pananet.com
    ~~~~ Javier Perez
    ~~~~ While the night runs
    ~~~~ toward the day...
    m m Pepebuho watches
    from his high perch.

    ________________________________________________
    Message sent using
    Inter.net 2.7.2

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Bill Dearborn: "grub Error 23 'Selected Disk Does Not Exist' - but it does!"

    Relevant Pages

    • Re: Authentication and SU
      ... > I noticed that each time that I execute su and then gedit I get the ... > like it is executing gedit on an new shell session where the contents ... > of the current XUAUTHORITY were taken from root's .Xauthority. ... I was checking for .Xauthority on my root directory and I saw not one ...
      (Fedora)
    • Re: (gedit:2743): GnomeUI-WARNING
      ... Authentication Rejected, reason: ... The only time I get that exact same error, is by running gedit from the ... cli after an su to root. ...
      (Fedora)
    • Re: IIS 5.1 execution questions - application failed to initialize
      ... The identity used by IIS to execute ASP page (and hence your WshShell.Run ... negotiated between the client and IIS in accordance to IIS authentication ...
      (microsoft.public.inetserver.iis)
    • Re: Forms Authentication Signoff
      ... > I am using forms authenication with a custom signon page and I execute the ... > following statement to force a signoff from a signoff web page... ... > protected from entry due to lack of authentication that the form is ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: AS400 FTP, can you launch a bat file on W2K3 server
      ... allows another system to execute commands without authentication, ... a command on the windows server would be as simple as uploading a batch file to ...
      (comp.sys.ibm.as400.misc)