0

I want to run privileged commands with having to enter my password.

I edited sudoers using the recommendation here.

Execute sudo without Password?

But I still have to enter my password?

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

andy ALL=(ALL) ALL

andy ALL=(ALL) NOPASSWD: ALL

fixit7
  • 3,127
  • Please use the search function before asking a new question about a common topic. Thanks. – Artur Meinild Sep 29 '22 at 17:40
  • @Artur Meinild I did use the search and used the recommendation I found. andy ALL=(ALL) NOPASSWD: ALL – fixit7 Sep 29 '22 at 17:50
  • Did you put it at the very bottom of the sudoers file? And did you log out and in again? – Artur Meinild Sep 29 '22 at 18:15
  • Yes, I put it at the bottom. Log out and rebooted as well. @Artur Meinild – fixit7 Sep 29 '22 at 18:25
  • Did you try andy ALL=(ALL:ALL) NOPASSWD: ALL? I'm using this syntax, and it's working without any issues. – Artur Meinild Sep 29 '22 at 23:10
  • @Artur Meinild I tried it. But when I use gparted it still asks for password. I will just restore sudoers to it's original condition. Thanks for your help. – fixit7 Sep 29 '22 at 23:25
  • Gparted? Afaik, GUI programs does not use sudo, but instead uses polkit. You're basically asking why you don't succeed in drilling a hole with a hammer ... – Artur Meinild Sep 29 '22 at 23:31

0 Answers0