Linux actual user (group) ID, valid user (group) ID, set User (group) ID

Source: Internet
Author: User

Actual User (group) ID:

Identifies who the user is, and the two fields are taken from the login entry in the password file when they log on.

Valid user (group) ID:

Determines access to the file, usually valid user (group) ID equals the actual user (group) ID, who runs the valid ID equals who's actual ID, regardless of the owner of the file.

If the set User (group) ID bit is set, then the valid user (group) ID is equal to the owner (group) ID of the file, and the valid ID is related to the file owner ID.

For example:/usr/bin/password, the program needs to write the password file, but the password file only Superuser has write permissions, so you need to set the user ID bit,

Then when the ordinary user executes passwd, the valid user ID equals the ID of the file owner root, and has the permission to write the password file;

Linux actual user (group) ID, valid user (group) ID, set User (group) ID

Related Article

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.