[Dirvish] Dirvish, rsync and sudo

Eric Mountain em-dirvish-1 at nerim.net
Tue Jul 12 14:33:44 PDT 2005


On Tuesday 12 Jul 2005 01:55, Brian Scanlan spake thus:
> 3) Apply the following patch to dirvish:
>
> diff /usr/sbin/dirvish /tmp/dirvish.old
>
> 522c522
> <       ( split(' ',$$Options{rsync}) ? split(' ',$$Options{rsync}) :
> 'rsync'), ---
>
> >       ($$Options{rsync} ? $$Options{rsync} : 'rsync'),
>
> 4) Add the following lines to /etc/dirvish/master.conf
> rsync: sudo rsync
> rsync-client: sudo rsync
>
> This patch is required as dirvish will do a system("sudo rsync"...)
> rather than system("sudo","rsync"...).

In fact, I think you don't need that patch (and it would break people's 
current configs).

Dirvish's config file syntax is a little bit special for list values.  Your 
config above (step 4) should in fact look like this:

rsync:
  sudo
  rsync
rsync-client:
  sudo
  rsync

See http://www.dirvish.org/pipermail/dirvish/2005-May/000321.html

Cheers,
Eric
-- 
Eric Mountain


More information about the Dirvish mailing list