Redhat: Modify user

From Define Wiki
Revision as of 14:53, 30 August 2013 by Michael (talk | contribs) (Created page with "== Usermod == Once a user is created various setting may need to be updated or changed. This is done with the usermod command. <syntaxhighlight> usermod -e 2013-06-08 <username> #chang...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usermod

Once a user is created various setting may need to be updated or changed. This is done with the usermod command.

usermod -e 2013-06-08 <username> #change the expiration date
usermod -G <group> <username> #add user to group
-aG <group> appends to exisiting group
-l <new username> set new username
-L Lock Password
-U Unlock Password

Groupmod

chage