(From remote Debian server)
When you give
sudo right with
visudo for the first time on first boot to a new user,
su - <newuser> will not be enough to offer the right to use
sudo and then reboot the server is the way to get the right to use the
Then you get back:
[sudo] password for <newuser>: <newuser> is not in the sudoers file. This incident will be reported.
I have tried
service sudo restart but that does not make the trick
:~$ getent group sudo sudo:x:27:<newuser> :~$ sudo bash [sudo] password for <newuser>: <newuser> is not in the sudoers file. This incident will be reported.
Do you think there is an efficient way to do that?
Information on configuration: Debian wheezy
sudo ALL=(ALL:ALL) ALL
gpasswd -a <newuser> sudo