Results 1 to 5 of 5

Thread: Run X app under root privilege

  1. #1

    Default Run X app under root privilege

    HI ,
    I use putty to login SLES server. I did "enable X11 forwarding" on putty and in "/etc/ssh/sshd_config", X11Forwarding yes . When I run ./installgui in putty with my account, GUI of application is opened. However, my application requires root privilege to run. So, I use command sudo ./installgui. And i got error like this: "PuTTY X11 proxy: wrong authentication protocol attempted08:05:14 PM: Error: Unable to initialize GTK+, is DISPLAY set properly?"
    Can somebody help me solve this issue. I need to run app via sudo comand .
    Thanks

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: Run X app under root privilege

    Run it with gnomesu, for example; gnomesu awesomeapp
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3

    Default Re: Run X app under root privilege

    Quote Originally Posted by Miuku View Post
    Run it with gnomesu, for example; gnomesu awesomeapp

    Great. Thanks so much Miuku. I searched many ways on google. But just only you can provide me the best solution. Thanks so much. Thanks SUSE forum

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,126

    Default Re: Run X app under root privilege

    Quote Originally Posted by lppnghia View Post
    Great. Thanks so much Miuku. I searched many ways on google. But just only you can provide me the best solution. Thanks so much. Thanks SUSE forum
    The more because this is NOT the SUSE forum, but the openSUSE forum.
    The SLES/SLED forum is here: https://forums.suse.com/forum.php

    Nevertheless, the followining information is rather distro independant: https://en.opensuse.org/SDB%3ALogin_as_root
    Henk van Velden

  5. #5

    Default Re: Run X app under root privilege

    Quote Originally Posted by hcvv View Post
    The more because this is NOT the SUSE forum, but the openSUSE forum.
    The SLES/SLED forum is here: https://forums.suse.com/forum.php

    Nevertheless, the followining information is rather distro independant: https://en.opensuse.org/SDB%3ALogin_as_root
    Noted. Thanks mod

Posting Permissions

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