This question is answered a number of times in the net, but none of those answer resulted useful in my case.
The problem
Accessing a remote machine using private key, I usually require root permissions, which imply writing a long password and is annoying.
For the purpose of having sudo su, I tried following steps:
- Ensure the line
<user> ALL=(ALL) NOPASSWD: ALLis in /etc/sudoers - Ensure the user is in
sudouser group:$groups <user>-> sudo
But trying sudo su will just prompt me for my own password: [sudo] password for <user>:
The question
How to have password-less sudo su?