Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Exploring OS X with dtrace' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Exploring OS X with dtrace
Authored by: mackyle on Apr 12, '08 11:41:19AM
For the dtruss script in particular, does anyone know of a way to run this as a normal user?
sudo chmod u+s /usr/sbin/dtrace

will allow dtruss to work as an ordinary user. It also makes dtrace suid root which means any user on the system can run dtrace with full privileges.

[ Reply to This | # ]

10.5: Exploring OS X with dtrace
Authored by: mzs on Jan 27, '09 04:26:49PM

HOLY MOTHER OF PWN BATMAN!

$ file /usr/bin/dtruss
/usr/bin/dtruss: Bourne shell script text executable

Don't EVER make a shell script suid root.



[ Reply to This | # ]