SUMMARY: sudo from crontab
From: Seth Rothenberg (SROTHENB_at_montefiore.org)
Date: 09/29/04
- Previous message: McVey, Andrew: "LTO-2 support removed from patch 108725-17?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 14:11:35 -0400 To: <sunmanagers@sunmanagers.org>
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
- Previous message: McVey, Andrew: "LTO-2 support removed from patch 108725-17?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|