I would warn about not setting a root login password.
I accidentily removed myself from the sudoers group by doing: usermod -G <newgroup> instead of usermod -G <newgroup> -a so it did not add me but instead removed me from all other groups.
Take care to have your root password and make sure you don't accidentily wipe yourself from the sudoers group if you don't.
The group is really called "sudo".
But your root access rights depend on that single thing.
When you are removed from sudo, it will start asking you for your root password instead of the user password. That is the sign that it is not going well.
It is hard to see the difference because group changes only affect newly logged in users. So beware.
I accidentily removed myself from the sudoers group by doing: usermod -G <newgroup> instead of usermod -G <newgroup> -a so it did not add me but instead removed me from all other groups.
Take care to have your root password and make sure you don't accidentily wipe yourself from the sudoers group if you don't.
The group is really called "sudo".
But your root access rights depend on that single thing.
When you are removed from sudo, it will start asking you for your root password instead of the user password. That is the sign that it is not going well.
It is hard to see the difference because group changes only affect newly logged in users. So beware.
Comment