usermod
command included in passwd
package
sudo usermod -aG sudo YOUR_USERNAME
usermod -a -G YOUR_GROUP YOUR_USERNAME
usermod -s /usr/sbin/nologin myuser
ssh and scp will fail
groups USERNAME
Related commands
See also
sudo
, id
, visudo
, useradd
, userdel
, usermod
, groups
, passwd
, chown
, chmod
, chgrp
, groupadd
, groupdel
, Passwordless sudo, passwd (package), sudo --help