[dtrace-discuss] Re: How to use DTrace??

Arun dkarun at gmail.com
Thu Dec 7 22:45:05 PST 2006


FYI.
Thank you Michael,
>                     I actually have not created a session as I don have
> the privilege, I have created a session on another Sun Os(not solaris
> but), and have logged in using rlogin. Is that a problem???? Can you
> elaboarte please???

Michael wrote:

privileges are properties of users/roles - they have nothing to do with how
you log in. Also, I don't understand your reference to "session" in this
context.

so: because with DTrace you can theoretically watch a lot of "private"
things (like passwords), you (either your user account or a role you can
assume) need certain privileges. If you don't have these privileges, the
number of probes you can watch is greatly reduced (see "man privileges")

That's what I suspect is the reason for what you're seeing as well, and
your reaction confirms it - you'd *know* if you had the necessary privileges.

Use this command to see for yourself:

$ ppriv $$

this is the output I get (yes, I *have* the privileges, but this is my
workstation :-):

3072:   /bin/bash
flags = <none>
        E: basic,dtrace_kernel,dtrace_proc,dtrace_user
        I: basic,dtrace_kernel,dtrace_proc,dtrace_user
        P: basic,dtrace_kernel,dtrace_proc,dtrace_user
        L: all
$

HTH

The output I get is->

the output I get is
                       
                  ppriv $$
                 15756:  -tcsh
                  flags = <none>
                 E: basic,dtrace_proc
                 I: basic,dtrace_proc
                 P: basic,dtrace_proc
                 L: all

 I don't get dtrace_kernel and dtrace_user. May be you are right...I don have the privilege
 Thanks a lot for the efforts you took...
regards,
Arun DK

Chip, I couldnt view the other probes as I din hav access.
thank you very much for your suggestions and help....
 
 
This message posted from opensolaris.org


More information about the dtrace-discuss mailing list