actual User id:Some articles refer to it as the real user ID, which is the ID when we log on to the UNIX system.
Valid User ID: Defines the rights of the operator. A valid user ID is a property of a process that determines the access to the file
No dead corners understanding Save settings user ID, Set User ID bit, valid user ID, actual user ID, dead corner Save settings
Recently, I encountered some problems when I understood how to save and set the user ID, but I found that I was not able
Actual User ID, valid user ID, and save setting user IDrealuserID: the actual user ID, which refers to the worker tiveuserid of the process executor: valid user ID, savedset-user-ID: save the set user ID as the inclutiveuser... actual user ID, valid
Actual user ID, valid user ID, and save Set user ID real user ID: the actual user ID, which is the valid user ID of the process executor, saved set-user-ID: Save the set user ID as a copy of the valid user ID, you can restore the original effectiv
Several Common Unix concepts are explained below.
First, we need to clarify that these concepts are related to processes.Real user ID indicates who actually executes the process. valid userid is mainly used to verify the File Access Permissions
First, the basic conceptactual user ID (ruid): used to identify who the user is in a system, usually after logging in, is uniquely determined, is the UID of the logged-on user.Valid User ID (EUID): used by the system to determine the user's
Actual user ID, valid user ID, and set user ID
These concepts are often encountered when reading Unix-related books, but these concepts have not been properly clarified, so that they have been completely understood. I have made a distinction
Actual User ID (actual group ID): Identifies who the current user (belongs to) is and is taken from the password file when the user logs on.Valid user ID (valid group ID): Used to determine our (current process) access to the file (that is, the
In the UNIX system, privileges, such as being able to change the system's notion of the current date, and access control, such as being able to read or write a particle file, are based on user and group IDs. when our programs need additional
1. Change the user ID and group ID
1.1. Set the user ID and group ID
There are 6 or more IDs associated with the process, as shown below:
Actual user ID
Who are we actually?
Actual group ID
Valid user ID
Used to
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.