Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I'm trying to make a launcher for a program that requires root privileges, how can I do this? I am hoping to get it to function just like ...
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958

    [SOLVED] launcher for sudo app?

    Hi All,
    I'm trying to make a launcher for a program that requires root privileges, how can I do this? I am hoping to get it to function just like the admin stuff functions, where a password prompt comes up. Thanks
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Use gksu
    eg.
    gksu nautilus
    this will open nautilus with root privilagees

    EDIT:
    for KDE its kdsu.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Would integrating kdesu or gksu be of any use to you? You could check to see if the UID=0. If it's not, have the program call itself through gksu/kdesu and exit.

    Other than that you could use freedesktop.org's xdg-su from the Portland project. Portland is included in most distros these days as far as I'm aware.

  4. #4
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    thanks for the guide, solved
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

Posting Permissions

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