I struggle to create
passwordless sudo for one user on my Debian server. I've added the following line to the
deployer ALL = NOPASSWD: ALL
but it doesn't work.
To my surprise, I can easily create a new user
adduser deploy passwd -l deploy su deploy touch somefile
deploy ALL = NOPASSWD: ALL to
sudo cp somefile /etc/init.d/somefile
won't prompt me for a password.
Could you please explain what could be the difference between my existing user (deployer) and a new one (deploy), so that
passwordless sudo would work for one, but not another?