Thread: Sudo'ing in GUI

  1. #1
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Question Sudo'ing in GUI

    Hi Pals,

    1)
    How do I run a command (that actually needs root permission) in GUI?
    Hmmmm, reframing it.....
    I have to install an RPM. From the terminal I issue the command......
    sudo rpm -i .........
    And it does the trick.... (as my usename has been added in the sudo file).
    Now, if I want to do the same thing from GUI.. (Double click the tar file), it stops me and asks for the root password...!!
    How do I go about?

    2)
    where do i place the program files (first of all, can I move the executables from the place they have been installed by rpm?) so that they appear in one of the menu items in my start menu....Say in the programming group (after Emacs etc)...

    -Harsha
    Help everyone you can

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    To answer your first question: If you are talking about how to accomplish this through a program you're writing, system() commands work from a GUI as well. They execute the command, they just won't show up on screen.

  3. #3
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192
    Hmmm... No, not my program....I was asking how do you do it in general....

    Suppose I download an RPM, how do I install it....Or, suppose I want to configure the mouse or something, how do I do it?

    Better way, how do I tell a GUI application that my login is listed in sudoer file so that it wont prompt me for root password....?

    -Harsha.
    Help everyone you can

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    17
    Suppose I download an RPM, how do I install it....
    $rpm --help
    $rpm -ivh <package>

  5. #5
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192
    Have you gone through the complete thread Mr. Principii??? I know how to install an rpm in CLI, but my question was different.
    Help everyone you can

  6. #6
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Here you go, it's from gentoo.org, but should work on any other distro.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI Programming...
    By ShadeS_07 in forum C++ Programming
    Replies: 12
    Last Post: 12-28-2008, 04:58 PM
  2. Convert Windows GUI to Linux GUI
    By BobS0327 in forum Linux Programming
    Replies: 21
    Last Post: 11-27-2005, 04:39 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM