Robin Becker wrote:

I'm being daft; it seems sudo always logs itself. Is there away to get sudo to not syslog if it's root sudoing as www? I looked at sudoers, but couldn't see an obvious way to set !syslog for

root > www using svnadmin or svnlook etc etc

Well, if you're starting as root, you can just use:

  su user -c 'some command line'

to run a command as whatever user you want -- no password required.  su will 
log to /var/log/auth.log but it's nowhere near as verbose as sudo.

Or you can use /etc/crontab which has an extra  field specifying which UID
a command should be run as, unlike the normal per-user crontab files.  Usual
advice is to leave /etc/crontab alone and put your local cron jobs into the
per-user crontab files.  However the system crontab file /can/ be customised
if you really want to -- you'll just have to merge any changes when you do 
system
updates and so forth.

But on the whole, the best and cleanest solution to running cron jobs as some
arbitrary user is to create a crontab file for that user.
        Cheers,

        Matthew

--
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                     Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                     Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to