Linux and Windows Interop files, user profiles and password profiles, user group management, user management

Source: Internet
Author: User

Linux and Windows inter-pass files
User profile and password configuration files
User Group Management
User Management


Linux and Windows inter-pass files

Yum Install-y Lrzsz

650) this.width=650; "src=" https://s4.51cto.com/oss/201710/30/c770212e2226d0c20b9205856428e9b4.jpg "style=" float: none; "title=" qq20171030172618.jpg "alt=" C770212e2226d0c20b9205856428e9b4.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/oss/201710/30/4d8c1bf96e403b7a99a78b58ee69f167.jpg "style=" float: none; "title=" qq20171030172825.jpg "alt=" 4d8c1bf96e403b7a99a78b58ee69f167.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/oss/201710/30/9438a7000ba463a96795e37085931d06.jpg "style=" float: none; "title=" qq20171030173029.jpg "alt=" 9438a7000ba463a96795e37085931d06.jpg "/>


User profile and password configuration files
650) this.width=650; "src=" Https://s3.51cto.com/oss/201710/30/13c92f1779811b02c9272ff7e5c59ed7.jpg "title=" Qq20171030173332.jpg "alt=" 13c92f1779811b02c9272ff7e5c59ed7.jpg "/>

Root:x:0:0:root:/root:/bin/bash

Server:x:1000:1000::/home/server:/bin/bash

Second paragraph: x means password

Third paragraph: UID

Fourth paragraph: GID

The fifth paragraph: empty, user annotation information, no substantive effect

Sixth paragraph: User home directory (root directory is root, normal user home directory is home)

Last paragraph: User shell


Password file

Ls/etc/shadow

and user files are one by one corresponding, specifically force control user password

650) this.width=650; "src=" https://s1.51cto.com/oss/201710/30/33aa91d2908038dd343196ff5a4d20f5.jpg "style=" float: none; "title=" qq20171030174356.jpg "alt=" 33aa91d2908038dd343196ff5a4d20f5.jpg "/>


root:$6$tct/u60q6c5.19on$5jadoabn0v.mefrgdltcxrfeozyscnhnf0hn/vp1azo8i0hluh7jrpmb5wbeiu4osvsmqiywvxaby/ Ehsi83b0::0:99999:7:::

server:!! : 17464:0:99999:7:::

First paragraph: User name

The second paragraph: User password (encrypted, can not be compiled by a clear text password or an encrypted password, cannot be an encrypted password to obtain the plaintext password)

Third paragraph: number, is a number of days, distance from 1970.1.1 days

The fourth paragraph: How many days to change the password. 0 means unrestricted

Fifth: The number of days after the password expires, you must change the password within

Sixth paragraph: password expires in a few days

Seventh paragraph: (password expired) after a few days the account will be deactivated

Eighth: The number of days after 1970.1.1, the account will be deactivated

Nineth paragraph: Reserved fields

Set a password for the server user as the root user. You can see that although the password is the same, the encrypted string is not the same.

(If you want to make two commands on one line, split with semicolons)

650) this.width=650; "src=" Https://s1.51cto.com/oss/201710/30/e636f33492dcd57a4b6d8bf7cdeaea22.jpg "title=" Qq20171030175025.jpg "style=" Float:none; "alt=" e636f33492dcd57a4b6d8bf7cdeaea22.jpg "/>

User Group Management

When you create a user, you also create a group that is the same as the user name.

650) this.width=650; "src=" Https://s3.51cto.com/oss/201710/30/560e4e683cc35a9c6241b3c5f7bb397e.jpg "title=" Qq20171030191520.jpg "alt=" 560e4e683cc35a9c6241b3c5f7bb397e.jpg "/>


Add Group: Groupadd (You can specify an ID when adding groups)

650) this.width=650; "src=" https://s1.51cto.com/oss/201710/30/487f6612673a4753470362765fd85f39.jpg "style=" float: none; "title=" qq20171030192229.jpg "alt=" 487f6612673a4753470362765fd85f39.jpg "/>


Delete Group: Groupdel (if there are no members in the group)

650) this.width=650; "src=" Https://s4.51cto.com/oss/201710/30/cb40b54142d192e584d3c417d5f9cac9.jpg "title=" Qq20171030192334.jpg "alt=" Cb40b54142d192e584d3c417d5f9cac9.jpg "/>


User management:



Add User: Useradd

(You can specify a UID, or you can specify a group)

650) this.width=650; "src=" Https://s4.51cto.com/oss/201710/30/813e40f0345888dd879cdcd9ccbc06b6.jpg "title=" Qq20171030192854.jpg "alt=" 813e40f0345888dd879cdcd9ccbc06b6.jpg "/>


You can also create a home directory and Shell when you specify it

650) this.width=650; "src=" Https://s4.51cto.com/oss/201710/30/073557e7690ec93f8cc48b1c99dd8f20.jpg "title=" Qq20171030193222.jpg "alt=" 073557e7690ec93f8cc48b1c99dd8f20.jpg "/>

You can also create a user without having it create a home directory (-m):

650) this.width=650; "src=" Https://s5.51cto.com/oss/201710/30/a6892128b2ec023d3ede28216e14dc75.jpg "title=" Qq20171030193450.jpg "alt=" A6892128b2ec023d3ede28216e14dc75.jpg "/>

(does not mean that there is no home directory, home directory is/home/user5, but not created)


Other than that:

The UID will increase according to the number above, the GID is not related to the above number:

650) this.width=650; "src=" Https://s3.51cto.com/oss/201710/30/068765f189b9a85f744b4484026a877e.jpg "title=" Qq20171030194115.jpg "alt=" 068765f189b9a85f744b4484026a877e.jpg "/>


Useradd=adduser

650) this.width=650; "src=" Https://s4.51cto.com/oss/201710/30/61f5dea00f40207d40c45b17e56df160.jpg "title=" Qq20171030194330.jpg "alt=" 61f5dea00f40207d40c45b17e56df160.jpg "/>

Delete User: Userdel User8

(The user's home directory is not deleted, the administrator can delete it manually)

(You can also erase-R)

650) this.width=650; "src=" Https://s1.51cto.com/oss/201710/30/ae6ebc21c7808e141f41ec46833dbfd6.jpg "title=" Qq20171030194730.jpg "alt=" Ae6ebc21c7808e141f41ec46833dbfd6.jpg "/>



This article is from the "Serverlooker" blog, make sure to keep this source http://13279218.blog.51cto.com/13269218/1977541

Linux and Windows Interop files, user profiles and password profiles, user group management, user management

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.