Apue Study Notes-Chapter 6. System data file and Infomation

Source: Internet
Author: User

 1. Password File

Each system will have a file that records the username and password, usually/etc/passwd. This file includes: The root uin is usually 0. The X in the file is a placeholder, indicating that the real encryption password is saved in another file. If this column is not displayed, no password is set for the user.
  When the user's shell is set to/dev/null, the user can be prevented from logging on to the system. At the same time, if you direct shell to/bin/false or/bin/true, the corresponding And log out. The current user password is usually located in a file called shadow password.
This password adopts one-way encryption and cannot be restored.   You can use the getpwent (3), setpwent (3), and endpwent (3) functions to access password-related attributes. 2. Group Information For the group, there are also information about the file storage group, and corresponding functions to access the relevant information, which will not be summarized here. 3. Time   Strfttime (3) allows you to conveniently customize the corresponding time attribute output.  

 

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.