My current user is in /etc/sudoers as currentuser ALL=NOPASSWD: ALLIf I do sudo -u postgres psql postgres I am asked for a password, but if I do sudo -s && sudo -u postgres psql postgres I am not.Why am I asked for a password the first time?
Why am I asked for a password when NOPASSWD is set, but I can switch to root shell and run the same command without a password?
sudo