SUMMARY: sudo from crontab

From: Seth Rothenberg <SROTHENB_at_montefiore.org>
Date: Wed Sep 29 2004 - 14:13:54 EDT
Thanks for all the replies.

I asked about having a user run a script using sudo from his crontab.
The user CAN run the command via sudo from the command prompt,
but cron's environment causes sudo to prompt for a password.

Many people wrote to confirm that I was using a proper sudoers file,
even suggested I read the Man page.

No-one confirmed that Cron can run something under sudo when sudo.
A few people suggested to give up and run it as root,
or maybe that it should have been a root task in the first place.

I just wanted one script to do the task and update a database,
don't want root updating the database if I can help it.   HIPAA
auditors may wonder...

The summary is, It seems that sudo is not compatible with cron in
solaris 2.6.
(that's not to say you can't use sudo to run crontab - that you can do
:-).
I don't know about other platforms, but google says no-one else knows
either.

Thanks again
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Sep 29 14:13:47 2004

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:38 EST