Re: non-root sudo and cron


Subject: Re: non-root sudo and cron
From: Anthony Valentine (amv@akvalentine.com)
Date: Mon Jan 06 2003 - 14:52:35 AKST


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.



This archive was generated by hypermail 2a23 : Mon Jan 06 2003 - 14:47:51 AKST