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

Click here to return to the 'sudo is logged' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sudo is logged
Authored by: dhrakar on Jan 26, '04 03:04:53PM
First of all, please remember that su is already on OS X. The path is /usr/bin/su.

Now, the main difference between su and sudo is that sudo is really just a wrapper for su. That is, sudo checks your authority to do a certain action (via the /etc/sudoers file) logs your action in /var/log/system.log and then invokes that action using su. To me, the most important portion of this is the logging. Many times in the past I have grepped back through the syslogs to see just what I did to my system -- it is quite handy that way.
The only time I still use su, now, is for when my every-day working account is not an admin account on the system. Then I use the command su - support to become the support user and do the stuff I need to do via sudo.
For more information on all of these commands, I'd really recommend that you spend a few minutes reading the man pages for su, sudo, sodoers and visudo.

Have fun!

[ Reply to This | # ]