August 25 Jobs

Source: Internet
Author: User

Useradd


useradd [options] LOGIN

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M02/72/DD/wKioL1Xu7HSD7_E6AABCzAgC2ew872.jpg" height= "54"/ >

-R: Create a System user


-U uid: can specify uid;


-G GID: Specifies the base group to which the user belongs, which must exist beforehand


-C: comment some information


-d/path/to/somewhere: Specifies the user's home directory path;


-S shell: Sets the user's default shell;/bin/bash those


-G GID,... : Specifies the additional group to which it belongs;


Groupadd: Creating Groups


Groupadd [OPTIONS] GROUPNAME

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M00/72/DD/wKioL1Xu7HTxVdaZAAB32wDbV20676.jpg" height= "99"/ >


-G GID: indicates the group ID;


-R: Create a system group;


ID: View user-related ID information;


ID [OPTION] ... [USER]

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M02/72/E0/wKiom1Xu6kqgyFnhAABOFUMumBA934.jpg" height= "116" />

-u:uid


-g:gid


-g:groups


-n:name


Su:switch User, switching users or executing commands as other users;

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M01/72/DD/wKioL1Xu7HWyxDkUAABW6u_dabo706.jpg" height= "94"/ >

Su USERNAME: non-complete switching, non-login switching


su-username or su-l USERNAME: full switch, login switch



Usermod: User Property modification


usermod [OPTION] ... LOGIN

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M01/72/E0/wKiom1Xu6krj1XiQAABJXdxAdEw011.jpg" height= "63"/ >


-u uid modifies the value of the UID


-G gid modifies the value of GID


-G Gid[,gid,...] : Modify the additional group to which the user belongs


-S Shell, modifying the user Shell location


-C: Modify annotation information


-D home: when the user's home directory is modified to a new location, the user's original file is not moved to the new home;the-M option allows it to be moved to a new home directory at the same time;



note the location of the parameter, and the target directory cannot exist beforehand


-L : Account renaming

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M01/72/E0/wKiom1Xu6kqTf3SkAAAd3clvO7g012.jpg" height= "55"/ >


passwd: To add a password to the user, ordinary users can change their own, the administrator can change everyone


passwd [OPTION] [UserName]

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M02/72/E0/wKiom1Xu6kvSxv8dAABOoakfl0A871.jpg" height= "73"/ >

-L: Lock account



-u: unlock


-N mindays: minimum term of use; Unit is day


-x maxdays: Default is 99999 days;


-W warndays: Alarm date, first n days of expiration date


-I inactivedays: Inactive days, expiry can give you really long time to struggle


Userdel: Deleting users


Userdel [-R] USERNAME

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M02/72/DD/wKioL1Xu7HbiJFkGAAA0nKIqQ5Q615.jpg" height= "77"/ >

-R: Delete theuser's home directory at the same time;



Groupmod: Group Property Modification

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "Http://s3.51cto.com/wyfs02/M02/72/E0/wKiom1Xu6kvxyhfuAAAnoAikND8414.jpg" height= "88"/ >

groupmod [OPTION] GROUPNAME


-N Modify group name


-G Modify GID


gpasswd: Set password for group



NEWGRP: Toggles the base group for the specified group

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;border-bottom:0px;border-left:0px; " Border= "0" alt= "image" Src= "http://s3.51cto.com/wyfs02/M01/72/DD/wKioL1Xu7HbSTXe_AABx-RiTYlc572.jpg" height= "104" />


Groupdel: Deleting a group


Chage: Modify the properties of user account and password


chage [OPTION] ... LOGIN


-D Specify modified date


-e Specifies the number of days to expire


Wait a minute

August 25 Jobs

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.