Use of usermod in user and group management on the command line interface, command line usermod
After adding a user using useradd, you need to use the usermod command to make some modifications.Function Description: Modify the information of a user account.Syntax: usermod [-L | U] [-c
[-L Note:
Tags: command usermod userUsermod Commandusermod Command is a command to change a user's properties, Usermod Similar to the usage of useradd, there are several uses of this command: u sermod -u number username change the user's uid user1 user's uid 1111 650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/A7/18/wKioL1ngeqOz-hxKAAJffpyNavM417.png "style=" float : none; "tit
the "usermod" command uses full guidance---15 practice routines screenshot
by Babin Lonston Under:linux Commands On:november 11, 2014
Translation: by Smallliu
In Unix/linux distributions, ' usermod ' is often used by the command line to revise and change any attributes of an existing user. ' The Usermod ' command is similar to ' useradd ' and ' adduser ', but '
The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"tell 729 commands, 1935 examplesLearn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be foundStrive to publish content every day airfish2000 "blog, More commands to view blogs: http://airfish2000.blog.51cto.com/10829608/1887965Usermod Commanduse the usermod
files such as /etc/passwd , and delete the user's home directory if necessary. Delete an existing user account using the Userdel command, in the following format:
userdel Option user name
The common option is- R, which is to remove the user's home directory.For example:
# Userdel Sam
This command removes the user Sam's records in the system files (mainly/etc/passwd,/etc/shadow,/etc/group, etc.) while deleting the user's home directory.3, modify the accountModify user
Reference: Usermod manpageUsermod-Modify user account information modify a user accountsusermod [Options] UsernameOption (Options)-a|--append # #把用户追加到某些组中, only used with the-G option-c|--comment # #修改/etc/passwd file Fifth paragraph comment-d|--home # #修改用户的家目录通常和-m option used together-e|--expiredate # #指定用户帐号禁用的日期, Format yy-mm-dd-f|--inactive # #用户密码过期多少天后采用就禁用该帐号, 0 means the account is disabled after the password has expired-1 means disable thi
Usermod command parameters and usage details (Linux Modify user account information command)Linux usermod command parameters and usage details, Linux Modify user account Information command, USERMOD can be used to modify the user account settingsCommand: UsermodFunction Description: Modify user account.Syntax: Usermod
One, Usermod command 1. Usermod changing a user's properties
Usermod-u 111 User1 Change the UID of user User1 to 111
Usermod-g grp2 user2 Change user2 Group to User2
usermod-d/home/test User3 Change User3 's home directory to/home/test/
Quot; usermod quot; command instructions-15 exercise routines"Usermod" command instructions-15 exercise routines By Babin Lonston Under: Linux Commands On: November 11,201 4In Unix/Linux releases, 'usermod' is often used to modify and change any attributes of an existing user through the command line. the 'usermod' co
Linux User management command-useradd passwd usermod chage userdel su instance, useraddusermod
User's home directory
Common User:/home/user name. Both the owner and the group belong to this user. The permission is 700.
Super User:/root/the owner and group are both root users with the permission of 550
--------------------------------------------------------------------------------
Useradd [Option] User Name
Option:
-U UID: manually specify the user's
Modifying the consumer mode can be accomplished using the USERMOD command.First, usermod commonly used command introduction:-A: Use only with-G to add users to the affiliate group.-D: Modify the user login directory, such as the normal user login, the default into the pre-set home directory, some times in order to facilitate the login need to enter a more complex path, you can use this option to set the ent
Tags: BSP pre aaa ADO--ant RGB Microsoft MicFirst, usermod modify user informationUsermod-u 111 username #修改用户usermod-G grp2 username #修改用户组usermod-D/home/chinantfy2 username #修改用户家 Catalog Usermod-s/sbin/nologin Username #修改用户shellA user can belong to multiple groups, but GID has only oneID username can view user uid
Command: Usermod
Function Description: Modify user account.
Syntax: Usermod [-lu][-c
][-u]
[user account]
Supplemental Note: Usermod can be used to modify the user account settings.
Parameters
-c
-D Login Directory > modify the user login directory.
-e
-f
-g
-g
-l
-L LOCK the user's password to invalidate the password.
-S
What is the difference between usermod account locking and passwd account locking? usermodpasswd
From: http://www.apelearn.com/bbs/thread-6658-1-1.html
Passwd-l: Lock the account and add it to the front of the password string !.
Passwd-u removes the password string !.
By default, usermod-L only locks the password and adds it before the password string !.
By default,
When you use Useradd to add a good user, you want to make some changes, you need to use the Usermod command.Function Description: Modify the information of the user account. syntax : usermod [-L | U][-c [-l Additional note: Usermod can be used to modify the user account settings. Parameters:-cFull path to the-d-e-f-g-g-l-L LOCKS the user password to invalidat
Usermod Introduction to Commands: Modify user account properties . NBSP; 1 . command format: usermod [option] USERNAME2 . Command function: 3. Command parameters: -U uid modifies the UID of the user-G GID Modifying the user's GID must be a group that already exists-a-g GID : Does not use the-a option to overwrite previous additional groups;-C Add comment information to the user-d-m : Speci
Differences between CentOS commands usermod, chown, and chmod
For Linux beginners, I often confuse the differences between chown and chmod. This blog is for reference.Usermod is used to modify the UID, GID, and groups of a user. Usage:
Usermod-u 9999 testuser // change the UID of testuser to 9999 usermod-g 9999 testuser // change the GID of testuser to 9999
Tags: BSP app hal change home directory home font size verificationFirst, Usermod commandusermod can be used to modify the user account settings-C,--comment note the new value of the GECOS field-D,--home Home_dir user's new home directory-E,--expiredate expire_date set the account expiration date to Expire_date-F,--inactive inactive expired inactive days, set password to invalid state-G,--gid group enforces the use of group as the new primary group-G,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.