Sunday, October 5, 2014

Linux file ownership

A owner of a new file is the effective userid of the process

The owner group is more complicated to determine.  For system V behaviour (default for Linux), the owner group is the effective gid of the process.  For BSD behavior, the owner group is the gid of the parent directory.  BSD behaviour can be set by a mount-time option.

Linux by default will use the BSD behaviour if the set group ID bit is set (setgid).

Fortunately, the group owner is usually not important.

No comments: