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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  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
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,649
    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
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

  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. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045

    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
  •