I started to receive a message
dims is not in the sudoers file. This incident will be reported.
about myself.
How could this happen?
The suspicious command I made was creating group "advanced" and adding myself to it.
addgroup advanced
usermod -G advanced dims
Could this break my sudo rights?
After
the user
dims
is only a member of the groupadvanced
but not of any other group. So as he isn't a member of the groupadmin
orsudo
he is no longer allowed to usesudo
.To just add a user to another group you need to use the
-a
switch tousermod
, like