![](/images/new-backgrounds/1330589/33058991x1.webp)
#audsys
3.Execute an
#/usr/sbin/authadm add newauth
4.Open the audit output file and search for the records on the authadm command by using the following command:
#audisp /tmp/aud.out fgrep authadm
5.(Optional) Disable auditing on the system by using the following command:
#audsys
NOTE: See audit(5), audevent(1m), audsys(1m), and audisp(1m) to learn more about auditing
Using HP-UX RBAC
This section explains how to run the privrun and privedit commands to operate
Using the privrun Command to Run Applications with Privileges
The privrun command enables a user to run legacy applications with different privileges, according to the authorizations associated with the invoking user. The user invokes privrun, specifying the legacy application as command line arguments. Next, privrun consults the /etc/rbac/cmd_priv database to determine what authorization is required to run the command with additional privileges. If the user has the necessary authorization, privrun invokes the specified command after changing its UID and or GID as specified in the /etc/rbac/cmd_priv database.
The following is the privrun command syntax:
privrun [options] command [args]
The following list explains each of the privrun command options:
46