c++ - when a file is generated by an executable, what is the file's user and group on linux - TagMerge
1when a file is generated by an executable, what is the file's user and group on linuxwhen a file is generated by an executable, what is the file's user and group on linux

when a file is generated by an executable, what is the file's user and group on linux

Asked 11 months ago
3
1 answers

The file's owner will be the effective UID of the process that creates it, and the group will be the effective GID of the process.

The exception is if the directory where the file is created has the setgid permission bit set. Then the group will be the group of the directory.

Source: link

Recent Questions on c++

    Programming Languages