About File Permission in Unix/Linux

Source: Internet
Author: User
About file attributes, process attributes and file permissions on Unix/Linux
System.
1. current working directory, environment variables, umask value are all
Attributes of a process.
The real User ID, real group ID, valid tive user ID, valid tive group ID,
And supplymentary user ID and supplymentary group ID are attributes of
Process. The real user ID and group ID are ones who start the process (run
Program). The specified tive user ID and group ID usually equal to real user ID and
Group ID. But if the set-user-ID bit of a file is set, the valid user ID and
Group ID are forced to be the owner of the file and the group owner of the file.
2. st_uid, st_gid are attributes of a file, st_uid is owner of file, st_gid is
The group to which the file/use belong. st_uid and st_gid usually eaqual to
Use logging on and the group he/she belongs to. Both st_uid and st_gid can be
Found in/etc/passwd file.

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.