There are two utilities specified that provide a user with the capability to view or to manipulate privilege information associated with a file or process. The two utilities are getpriv and setpriv. The getpriv utility provides a user the capability to display the privilege attributes of a targeted file(s) or process(es). The options provided by POSIX.6 for this utility include: declaring that the target is a specific process or that the target is a specific file; displaying all values for all privileges, privilege attributes and flags associated with the target; and displaying only those privileges that have at least one flag set, and only those privilege attributes that are set.
The setpriv utility changes the privilege state associated with the specified file(s) or process(es). The options provided by POSIX.6 for this utility include: specifying a partial or complete privilege state that consist of one or more privilege specifications that is to be assigned to each target; specifying that the target is either a specified file or a specified process; and reading a partial or complete privilege state from a specified file that is to be assigned to each target.