Answer the question
In order to leave comments, you need to log in
How to remove the password prompt after sudo su?
After connecting with the admin user via ssh and entering the command sudo su or sudo -i, does the server keep asking for a password?
/etc/sudoers tried to change, but the password still asks.
File contents:
admin ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question