Linux Learning Notes (11)

Source: Internet
Author: User

One, Windows and Linux transfer files

Prerequisites: Xshell and SECURECRT support. Putty not supported

Yum Install Lrzsz

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201710/26/44ae81c4a29fa2541ef476165f2e9276.png-wh_500x0-wm_3 -wmp_4-s_438542439.png "title=" 1.png "alt=" 44ae81c4a29fa2541ef476165f2e9276.png-wh_ "/>

Linux =====> windows

SZ + file

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/26/be385ae48ae0042f468e2d5671979434.png-wh_500x0-wm_3 -wmp_4-s_2963305510.png "title=" 2.png "alt=" Be385ae48ae0042f468e2d5671979434.png-wh_ "/>

Windows =====> Linux (upload to current directory)

Rz

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/26/b21873a16966aecfe610bd1272b82f7a.png-wh_500x0-wm_3 -wmp_4-s_1846641869.png "title=" 3.png "alt=" B21873a16966aecfe610bd1272b82f7a.png-wh_ "/>

Ii. user profile and password configuration file


/etc/passwd/User's password file (the created user will add a line to the file)

(1) Username: (2) x (previous password): (3) UID: (4) GID: (5) User's comment information: (6) User's home directory: (7) User's shell (/sbin/nologin cannot log in)


/etc/shadow/dedicated password (and/etc/passwd/is one by one corresponding)

(1) User name: (2) User's password (encrypted, cannot decompile): (3) from 1970.1.1 to the last password changed how many days: (4) A few days before you can change the password (default is 0); (5) The password expires in a few days A few days after the password must be changed: (6) Password Expiration warning Period: (7) Account lockout time (password has expired, and then a few days to lock the account): (8) account distance from 1970.1.1 after the number of days locked: (9) Reserved fields

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/26/9d8a04f5e2b190f9e5430ffbdd5031e7.png-wh_500x0-wm_3 -wmp_4-s_3146908162.png "title=" 1.png "alt=" 9d8a04f5e2b190f9e5430ffbdd5031e7.png-wh_ "/>

Third, user group management

/etc/group/

/etc/gshadow/configuration file for group password

/etc/shadow-//etc/passwd/etc/gshadow-/file behind the belt-, the system automatically for our backup, accidentally deleted, can be copied back, there may be new users are not updated in a timely manner.

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/26/28986c4ab5e2ea409f78d17c30346eca.png-wh_500x0-wm_3 -wmp_4-s_3638221196.png "title=" 1.png "alt=" 28986c4ab5e2ea409f78d17c30346eca.png-wh_ "/>

650) this.width=650; "Src=" Https://s1.51cto.com/oss/201710/26/d174c0c203414f6107c4b03bc4ec6df4.png-wh_500x0-wm_3 -wmp_4-s_4013344772.png "title=" 2.png "alt=" D174c0c203414f6107c4b03bc4ec6df4.png-wh_ "/>

Group concept: There are a lot of users in a group

Groupadd Add Group

-g (number preferably above 1000) specify GID

Groupdel Delete a group (there must be no users within the group)

650) this.width=650; "Src=" Https://s5.51cto.com/oss/201710/26/b4de6c967e16354d1017fc449c0ff5f7.png-wh_500x0-wm_3 -wmp_4-s_941549175.png "title=" 3.png "alt=" B4de6c967e16354d1017fc449c0ff5f7.png-wh_ "/>

Iv. User Management

Useradd adding users

-u Specifies the UDI uid starting from 1000

-G + Group name specifies the group to join

-D + Home directory path/home directory

-S + shell specifies shell for new user

-M does not allow the creation of a home directory when creating a user

650) this.width=650; "Src=" Https://s4.51cto.com/oss/201710/26/64e795ff738e7811b3355f02d5e57daf.png-wh_500x0-wm_3 -wmp_4-s_4092922916.png "title=" 1.png "alt=" 64e795ff738e7811b3355f02d5e57daf.png-wh_ "/>

Userdel Delete User does not delete User8 's home directory

-R along with home directory delete

650) this.width=650; "Src=" Https://s2.51cto.com/oss/201710/26/f471918ed43bf5533dfb4fddedb1ed26.png-wh_500x0-wm_3 -wmp_4-s_3128197289.png "title=" 2.png "alt=" F471918ed43bf5533dfb4fddedb1ed26.png-wh_ "/>

Linux Learning Notes (11)

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.