Three weeks first class 2.27linux and Windows Interop files 3.1 user profiles and password Profiles 3.2

Source: Internet
Author: User

Three week first class
2.27linux and Windows inter-pass files
3.1 User profile and password configuration files
3.2 User Group Management
3.3 User Management

2.27linux and Windows inter-pass files
The first thing to install LRZSZ this package

SZ file name transfer files to the win system can be specified in the directory RZ in the win system to transfer files to the Linux system upload to the current directory


Specific installation steps
Installation must use Xshell or SECURECRT putty not be able to

3.1 User profile and password configuration files

User Profiles are designed to control user passwords

LS/ETC/PASSWD Open User Profile cat/etc/passwd View User profile contents

Structure of user files
First segment User: (Divided by ":" for 7 segments)
Second paragraph x password
Third paragraph 1000 user UID
Fourth 1000 group GID
Comment Information for the fifth paragraph of the empty user
Sixth paragraph home/aming user home directory
Seventh paragraph/bin/bash user's shell common shell has/bin/bash/sbin/nologin

Password configuration file

Ls/etc/shadow Open the Password profile Cat/etc/shadow view the password configuration file

> user file structure (similar to ETC/PASSWD: divided into 9 segments)
First segment User
The second paragraph!! User's password
The third period of days user password changed from 1970 to now how many days
Fourth 0 How many days before you can change your password
Fifth 99999 passwords must be changed after the expiration date expires
Sixth 7 7 days before password expiry warning
The expiration period of the seventh password will lock the account
The eighth paragraph of the account is used before expiry
Nineth paragraph reserved characters

3.2 User Group Management

ls/etc/group Opening user group files Cat/etc/group viewing user group files

Password configuration file for the group

Ls/etc/gshadow Open the password profile Cat/etc/gshadow view the password configuration file

Groupadd Group name create Group Groupdel group name Delete Group

There are groups of users that cannot be deleted!!

3.3 User Management

Useradd User name creation user

Useradd-u 1004-g GRP2 user name new user and specify UID and owning group

-d/home/aming111-s Sbin/nologin

#指定用户的加目录和shell

USERADD-M user name creates a user without having it create a home directory (does not mean that the user does not have a home directory, but the home directory is not created)

Userdel User name Delete user userdel-r user name delete user and delete home directory

Three weeks first lesson 2.27linux and Windows Interop file 3.1 user profile and password Profile 3.2

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.