Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Setting X11 Display variable

  1. #11
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: Setting X11 Display variable

    Quote Originally Posted by guilly View Post
    That created another issue, now it's complaining about Putty X11 proxy: wrong authentication protocol attempted.

    I've verified that xauth list has the proper cookies set for the root account so they match my regular user
    Are you running these sudo commands remotely with putty?

  2. #12
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: Setting X11 Display variable

    Quote Originally Posted by cdenley View Post
    Are you running these sudo commands remotely with putty?
    Yes, We need our users to be able to run a backup application remotely via putty.
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  3. #13
    Join Date
    Mar 2010
    Location
    Milan, ITALY
    Beans
    58
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Setting X11 Display variable

    A quick google search has returned this

    http://froebe.net/blog/2008/11/14/ge...ve-the-answer/
    Violence is the last refuge of the incompetent

  4. #14
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: Setting X11 Display variable

    Quote Originally Posted by dwarfolo View Post
    A quick google search has returned this

    http://froebe.net/blog/2008/11/14/ge...ve-the-answer/
    As stated before, I've already checked this.
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  5. #15
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: Setting X11 Display variable

    Quote Originally Posted by guilly View Post
    As stated before, I've already checked this.
    Try commenting out "Default always_set_home", but leave "Defaults env_reset". Also, I think the other line I gave you may not be needed.

  6. #16
    Join Date
    Jul 2007
    Beans
    239
    Distro
    Kubuntu

    Re: Setting X11 Display variable

    Quote Originally Posted by cdenley View Post
    Try commenting out "Default always_set_home", but leave "Defaults env_reset". Also, I think the other line I gave you may not be needed.
    I've already tried both. Thanks, I think I will leave both commented out. These servers are only being used on a secured network, I think I will trust the users not to do anything malicious to roots home environment.

    Thanks for the help!
    AMD X2 3800+ ATI X1600 running 7.10 64bit

  7. #17
    Join Date
    May 2005
    Beans
    7

    Re: Setting X11 Display variable

    Quote Originally Posted by guilly View Post
    I've already tried both. Thanks, I think I will leave both commented out. These servers are only being used on a secured network, I think I will trust the users not to do anything malicious to roots home environment.

    Thanks for the help!
    I think I'm hunting for a solution to the same problem -- we've got backup operators who login via "ssh -X" as a non-privileged account, then use sudo to run ad-hoc backups and restores. SLES10 has locked down sudo so that X11 progs. can't operate by default.

    With the following three settings, sudo is now able to invoke X11 gui progs.

    #Defaults always_set_home
    Defaults env_reset
    Defaults env_keep = "DISPLAY XAUTHORITY XDG_SESSION_COOKIE"


    HTH.
    Adrian

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •