![]() Previous |
![]() Next |
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:
The Security chapter in the Solaris Dynamic Tracing Guide at http://docs.oracle.com/cd/E19082-01/819-3620/chp-sec/index.html
.
Solaris Internals: DTrace Topics Guide at: http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_Guide
.