next up previous
Next: Superuser Up: The Unix Security Model Previous: User categories

Permissions

Unix defines four categories of permissions for access to files.1 The precise meanings of these categories differ somewhat according to whether the file in question is a regular file or a directory.

In practice, access to a file is always performed by a running process. Each process on the system belongs to a specific user and group. (Normally, a process inherits its user and group identification from the parent process, e.g. the shell, but in some cases such as suid programs or processes that are started as root, the user or group can be different.) When the process attempts to access a file, its user id is compared to that of the file. If it matches, then the process gets the permissions granted for the user category. Failing that, its group id is compared to that of the file, and if it matches, then the process gets the permissions granted for the group category. Otherwise it gets the permissions for the other category.



 
next up previous
Next: Superuser Up: The Unix Security Model Previous: User categories
Robert Moniot
2000-09-13