9

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?

Dims
  • 1,803

1 Answers1

22

After

usermod -G advanced dims

the user dims is only a member of the group advanced but not of any other group. So as he isn't a member of the group admin or sudo he is no longer allowed to use sudo.

To just add a user to another group you need to use the -a switch to usermod, like

usermod -a -G advanced dims