Re: non-root sudo and cron


Subject: Re: non-root sudo and cron
From: volz (volz@koyukuk.at.uaa.alaska.edu)
Date: Mon Jan 06 2003 - 15:26:00 AKST


Then you would have to give it su equivalency, Lee probably just wants to limit
it to a few tasks.

is rsync in /usr/bin?

--Karl Volz

>
>Why not just put the cron job in the 'it' users crontab?
>
>
>On Mon, 2003-01-06 at 03:53, thomson wrote:
>>
>> I have a cron job (some rsyncs) that I want to run as non-root user.
>> Here's the command I use:
>>
>> /usr/bin/sudo -u it "rsync -rP --partial rsync.blah.org::bogus ."
>>
>> where "it" is the user I want it to run as.
>>
>> Here's the /etc/sudoers:
>>
>> %wheel ALL=(ALL) NOPASSWD: ALL
>>
>> user "it" is in group "wheel".
>>
>> When I run this from a command line, all I get is:
>>
>> sudo: /usr/bin/rsync -rPv --partial rsync.blah.org::bogus .: command not
>> found
>>
>>
>> Any ideas on this?
>>
>> thx,
>>
>> Lee
>>
>>
>>
>>
>>
>> ---------
>> To unsubscribe, send email to <aklug-request@aklug.org>
>> with 'unsubscribe' in the message body.
>--
>UNIX was not designed to stop you from doing stupid things, because
>that would also stop you from doing clever things.
>
>
>---------
>To unsubscribe, send email to <aklug-request@aklug.org>
>with 'unsubscribe' in the message body.
>

 

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Mon Jan 06 2003 - 15:28:52 AKST