2.27linux and Windows inter-pass files
With Xshell Software
#yum install-y Lrzsz
Linux to Windows, command for #sz a.txt save to Windows as prompted
Windows to Linux, command to select Windows files for #rz, then save to current directory
3.1 User profile and password configuration file 5
/ETC/PASSWD user account password file, configuration file;
Configuration file contents, separated by colons, a total of 7 columns;
First column, user name;
In the second column, the password is all represented by X;
third column, UID;
Fourth column, GID;
Fifth column, note;
Sixth column, user home directory;
Seventh column, user shell directory;
/etc/shadow dedicated user password;
Configuration file contents, separated by colons, a total of 9 columns;
First column, user name;
The second column, the encrypted password;
The third column, the number of days the password was last modified from January 1, 1970;
The fourth column, the password How many days to modify ;
The fifth column, the password to how many days must be modified;
The sixth column, the number of warning days before the password expires;
The seventh column, the password has expired, and then a few days account failure;
Eighth column, account life cycle, distance from January 1, 1970;
Nineth column, reserved field;
Account aming Set Password, command for #passwd aming
3.2 User Group Management
/etc/group user group configuration file, similar to user password profile; user group name, password, GID, etc.;
/etc/gshadow user group password file, similar to user password file;
User and user group related backup files
File name plus-, for backup files, when used to remove-can;
Create group GRP1, command for #groupadd GRP1;
Create group GRP1 and specify GID, command for #groupadd-g 1005 GRP1;
View User group profile The last line is the new Add group information, the command is #tail-n1/etc/group;
Delete Group GRP1, if the group does not have a user, the command is #groupdel GRP1;
3.3 User Management
Create user, command for #useradd User2;
Create user, and specify UID and GID, command for #useradd-u 1004-g 1005 user2;
Create user and specify UID and GID, home directory, user shell directory, command for #useradd-u 1004-g 1005-d/home/aming111-s/sbin/nologin user2;
Create user, do not create home directory, command for #useradd-m User2;
To view the newly created user password information, the command is #tail-n2/etc/passwd;
Delete the user, the command for #userdel User2, did not delete the user home directory, and then remove the home directory, #rm-rf/home/user2;
Delete users, and delete the user home directory, command for #userdel-r User2;
Useradd can also be used adduser, the same function;
Linux Study notes third week first Class (February 5)