Differences

This shows you the differences between two versions of the page.

Link to this comparison view

usermod [2014/05/09 12:22] (current)
Line 1: Line 1:
 +====== usermod ======
  
 +  * [[useradd]]
 +  * vipw
 +
 +  * [[http://​www.cheatography.com/​citguy/​cheat-sheets/​nix-users-and-groups/​|Unix Users and Groups Cheat Sheet]] - good stuff
 +
 +== Change primary group ==
 +
 +<​code>​
 +usermod -g user-group username
 +</​code>​
 +
 +== Add user to more groups ==
 +
 +<​code>​
 +usermod -G "​group-a group-b"​ -a username
 +</​code>​
 +
 +== Change home directory ==
 +
 +<​code>​
 +usermod -d /home/dir username
 +</​code>​