Usermod

From wikieduonline
Jump to navigation Jump to search

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


You may need to start a new login shell after adding user: su - USERNAME


Related commands

See also

Advertising: