If a user belongs to several supplementary groups, that person usually has multiple roles in a given organization. Can that person’s processes use setgid(2) or setegid(2) to change its effective group ID to one of its supplementary group IDs when creating new ?les for different workgroups? If not, then how does a user create ?les that others in its supplementary group list can work on based on group permissions?
What will be an ideal response?
Unprivileged processes can’t change their group IDs to anything other than their effective GID, real GID, or saved set-GID. The easiest solution is to enable the option to have newly-created ?les inherit their group ownership from the parent directory,and arrange for each group to sharework in its own directory owned by the group. Group ID ?le ownership is inherited by default on BSD-based systems (recall Section 4.6). Alternatively,aprocess can call chown(2) to set a the group ownership of a ?le that is owned by the same user ID to one of the process’s supplementary group IDs.
You might also like to view...
Now suppose further that p1 points to a node of type N in the middle of a linked list (neither the first nor the last node). Write code that deletes the node after the node p1 points to in the linked list. After the code is executed, the linked list should be the same, excepting the specified node is missing.
Suppose you have the following struct definition and typedef statements in your program: ``` struct N { double d; N *next; }; typedef N* node_ptr; node_ptr head, p1, p2; ```
The first step in creating a front-end database is to create the forms
Indicate whether the statement is true or false
A(n) ____________________ font attempts to duplicate as many features of a specific font as possible.
Fill in the blank(s) with the appropriate word(s).
Ctrl+Enter is the keyboard shortcut for inserting a page break
Indicate whether the statement is true or false