Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, Is there a way to run programs from an icon as sudo? Basically i have vmware workstation installed in ubuntu, it works fine if i type sudo vmware from ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    9

    Run applications as sudo without command line

    Hi,

    Is there a way to run programs from an icon as sudo?

    Basically i have vmware workstation installed in ubuntu, it works fine if i type sudo vmware from the terminal then enter my password, but is there a way to always run this as sudo without having to type my password - ie launch it straight from the menu / icon

    thanks

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    It sounds like you need gksu vmware (but you will still need your password)
    If you are using KUbuntu I believe the equivalent id kdesu vmware
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    9
    thats great...i don't mind about the password...do i just create a launcher to gksu vmware?

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941

    Thumbs up

    Use nopasswd in sudoer file using visudo command ... example
    Code:
    denis_cooper  ALL=NOPASSWD:  /bin/cat
    you should find
    Code:
    man sudoers
    will provide most of the options you need

Posting Permissions

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