Third week section I, Linux and Windows interoperability files, user profiles and password profiles, user and user group management

Source: Internet
Author: User

Linux和Windows互传文件

Samba, FTP services can implement Linux and Windows file transfer, usually we use the Xshell also has a command to implement Linux and Windows file Mutual transfer:
First we will install the package:
[Email protected] ~]# yum-y install Lrzsz
To upload a Linux file from Windows:
[Email protected] ~]# RZ

To upload a file from Linux to Windows:
[Email protected] ~]# sz anaconda-ks.cfg

This realizes the Linux and Windows Mutual transfer files;

用户配置文件和密码配置文件、用户及用户组管理

User management-related configuration files under Linux belong to the system configuration file, in the directory/etc, you can view the configuration file help information through the Man command, the format is: Man 5 profile Name, the configuration file name is called simple name, not absolute path name. The configuration files involved in Linux user management are: passwd, Shadow, group, Gshadow

  1. User password file:/etc/passwd
    cat/etc/passwd

    Field analysis, semicolon-delimited:

    a. 用户名:    用户名应该有规范,不应随便定义b. 密码标志:    x表示用户有密码,具体密码信息在/etc/shadow中查看c. 用户id:    id 为0 的是超级用户,自定义用户id 从500 之后增加d. 用户组id: 用户初始组id , 每个用户只能有一个初始组e. 注释:    用户注释f. 家目录:    
      1. User Password policy file:/etc/shadow
        Cat/etc/shadow

        Field analysis, semicolon is delimiter:

        A. User name:

        B. User password: After encrypting the password string, to! The beginning indicates that the user is locked out, * indicates no password

        C. Date modified: The last time the password was modified, the time stamp under Linux represents

        D. Change interval: two times the minimum interval between password modifications, per day

        E. Password validity: Day, 99999 can be permanently valid

        F. Warning time: The warning time before the password expires, after login will be prompted, the unit is days

        G. Grace time: The grace time after the password expires, 0 is immediately invalid, 1 means never expires, n means a few days after the expiration, the unit is days

        H. Account expiry time: After expiration, the account expires, regardless of the password policy, the time stamp under Linux indicates

        I. Reserved fields

      2. User group file:/etc/group
        Cat/etc/group

        Field Analysis:
        A. Group name
        B. Password: x indicates a password, the password is in/etc/gshadow
        C. Group ID
        D. Additional users
      3. User group password policy file:/etc/gshadow
        Cat/etc/gshadow

        Field analysis
        A. Group name
        B. Group Password: Encrypted password string, not commonly used, easy to have security vulnerabilities
        C. Administrator: The administrator of the group, after the administrator has a password, you can manage the users in the group
        D. List of users: List of users included under the group

Third week section I, Linux and Windows interoperability files, user profiles and password profiles, user and user group 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.