Ubuntu 20.04. I have created 2nd user and try to do:
sudo su [sudo] password for xoleg: xoleg is not in the sudoers file. This incident will be reported. xoleg@oleg-HP-2004:~$
Then my other user added this 2nd user
>usermod -aG sudo xoleg
and yet this
>nano /etc/sudoers
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# added this
username ALl=(ALL) NOPASSWD:/bin/mkdir,/bin/rmdir
after it again to xoleg session
>sudo su
[sudo] password for xoleg:
xoleg is not in the sudoers file. This incident will be reported.
Where am I wrong? how to fix it?