usermod

From wikieduonline
Revision as of 08:41, 6 October 2021 by Chmod15 (talk | contribs)
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: