Command format:
usermod [Options] User name
Command function:
Modify user account Properties
Common options:
- u Modify UID number of user account
- D Modify the user host Directory
- e Modify user account expiration time
- s Modify user login Shell
- g Modify user base Group
- g Modify user Attach Group
- l change user name
- l Lock user account
- u unlock user account
Common examples:
Example one: change user account Zhangsan to Lisi
Command: usermod-l Lisi Zhangsan
Description: The option "-L" followed by the modified name, and the first name before the change in the last
Note: Usermod inside the lock and unlock the user's options are uppercase, to distinguish it from the options in the passwd command, the other options are the same as the Useradd command described earlier
This article is from the "Shiyu" blog, make sure to keep this source http://928004321.blog.51cto.com/10707688/1731547
Linux command--usermod