Skip Headers
Previous
Previous
 
Next
Next

Setting Up DTrace Privileges

The DTrace Recorder needs to be run as a user with DTrace privileges. The root user also has DTrace privileges, but running everything as root might not be a good idea.

You must also have the dtrace command in your path.To know if you have DTrace privileges, try running dtrace -S.

To set DTrace privileges for a local user, run:

/usr/sbin/usermod -K defaultpriv=basic,dtrace_proc,dtrace_kernel,dtrace_user <username>

To set DTrace privileges for a non-local user, add the following line to /etc/user_attr:

<username>::::type=normal;defaultpriv=basic,dtrace_proc,dtrace_user,dtrace_kernel

Notice that the user might have to log out and log in again for the changes to take effect.

For more information about DTrace privileges, see: