2

I didn't see this answered satisfactorily anywhere, so I figured I'd ask.

Every time I go to do something requiring privileges, such as install a program, open restricted folders, etc., I'm prompted for the account password, even though my user account is an administrator.

How do I get it to stop prompting me for my password when doing such actions?

zhongfu
  • 1,449
  • 4
    That is the way it is designed to work. If you need a root shell run sudo -i . You should not always need to run a root, only when you update, install software, or edit system files. See also https://help.ubuntu.com/community/RootSudo and https://help.ubuntu.com/community/FilePermissions – Panther Apr 08 '15 at 13:57
  • 5
    Doing this will likely ruin the security of your system. – Seth Apr 08 '15 at 14:33

1 Answers1

3

A dirty workaround would be to set your account to not prompt for sudo passwords, but that is not recommended for security purposes. if you type "sudo visudo" you should be able to add an entry for your user that looks like this:

# User privilege specification
root    ALL=(ALL:ALL) ALL    
username    ALL=NOPASSWD: ALL

This may or may not work for the GUI as well

Andrew Meyer
  • 1,487