2

User spock belongs to groups human and vulcan.

File holo is owned by user root and by group vulcan. Its permissions are rwxrwx--- (770).

Process tractor is started by user spock, and has uid spock and primary gid human.

Will tractor automatically have access to holo, or will it have to explicitly request the supplemental group permissions of spock via an initgroups call?

The comment here says that it has to be designed to make an explicit request, but the credentials manpage does not mention anything like that and seems (to me) to imply that the supplemental-group checking is automatically done by the OS.

1

Just so long as the permissions were in place before the tractor process was started it will have access to the file 'holo' because it's part of the 'vulcan' group.

If you start the tractor process then add the 'spock' user to the 'vulcan' group it may not work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.