Usermod

From Wiki
Revision as of 20:38, 9 September 2011 by Scott (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lock barney's account (puts a '!' in front of the encrypted password in /etc/shadow):

usermod -L barney

Add barney to group admins:

usermod -a -G admins barney

Change barney's username to Barney:

usermod -l Barney barney