answered: non-root sudo and cron


Subject: answered: non-root sudo and cron
From: thomson (lee@afabco.com)
Date: Tue Jan 07 2003 - 05:40:22 AKST


found answer; it's a 'yds'...

I had quoted the command. Take the quotes away, and works as expected.

thx all

> >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.



This archive was generated by hypermail 2a23 : Tue Jan 07 2003 - 05:40:49 AKST