September 2014
Intermediate to advanced
240 pages
5h 53m
English
When a user has been assigned multiple roles, they usually work with their primary role (such as staff_r) and only selectively execute commands with the other role. This can be accomplished through the sudo command, as these commands usually also require a different Linux user (which can be root or the postgresql account for DBA tasks on the PostgreSQL database server).
In order to configure sudo to perform the right role and type transition, execute the following steps:
sudoers file through visudo:
~# visudo
dba group to call initdb in the dbadm_r role, define the commands as ...