Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have edited my /etc/sudoers to successfully stop myself from having to enter a password for sudo, but I still have to enter a password to do GUI-based things like opening Synaptic or clicking Unlock in the User Accounts app. Interestingly, I don't need a password to run gksudo synaptic.

Is there any way to not enter a password for graphical root actions?

share|improve this question
    
How did you edit the /etc/sudoers file? Did you use the visudo to edit or did you just open it up in a text editor? –  Kevin Bowen Jan 17 '13 at 5:33
    
@maggotbrain visudo –  JJ56 Jan 17 '13 at 6:17

1 Answer 1

First edit the sudoers file using

sudo visudo

And enter the line in the file:

%sudo ALL=NOPASSWD:ALL

You have probably already done this to get the root privileges without password prompt. On my system this also means that gksu will not prompt for password, as it is using sudo for the root privilege escalation.

Check your gconf settings using the gconf-editor tool. Don't run it as root - use your regular user privileges. Look under the /apps/gksu configuration tree. On my system, for my user account, the

  • "prompt" checkbox is unchecked (value false), the
  • "sudo-mode" one is checked (true), and the
  • "display-no-pass-info" one is checked (true).

This forces gksu to use sudo mode, which should respect your sudoers settings.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.