Holger Parplies escribió:
> Hi,
>
> Craig Barratt wrote on 2009-01-07 22:46:09 -0800 [Re: [BackupPC-users] I
> received the error "No files dumped for share"]:
>
>> Omar writes:
>>
>>
>>> $Conf{TarClientCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f -
>>> -C $shareName+'
>>> . ' --totals';
>>>
>>> $Conf{TarClientRestoreCmd} = ' env LC_ALL=C /usr/bin/sudo $tarPath -x -p
>>> --numeric-owner --same-owner'
>>> . ' -v -f - -C $shareName+';
>>>
>> Both of these are wrong - they start with a space. BackupPC doesn't
>> know what program to exec.
>>
>> You need something like:
>>
>> $Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f - -C
>> $shareName+ --totals';
>>
>
> though I would like to point out that configuring sudo to allow execution of
> 'env' is effectively allowing arbitrary commands as root. You need to have
> something like
>
> backuppc ALL=NOPASSWD: /usr/bin/env LC_ALL=C /usr/bin/tar -c *
>
> in /etc/sudoers to be fairly secure (you might want to specify more or less of
> the command line, depending on what you want; more to limit it to a specific
> directory, less to allow restores with the same sudoers entry).
>
> If you use something like '/usr/bin/env LC_ALL=C /usr/bin/sudo ...' that
> probably won't work, depending on which environment variables your sudo
> propagates and which it doesn't.
>
> Regards,
> Holger
>
>
Hi.
Yes, i had to edit /etc/sudoers for put my backuppc user, with NOPASSWD,
and in the config.pl i have write the said me Craig
"$Conf{TarClientCmd} = '/usr/bin/sudo env LC_ALL=C $tarPath -c -v -f -
-C $shareName+ --totals';" At now i don't have any problem.
Thank your four your help!!
Regards,
Omar Llorens
JPL TSOLUCIO, S.L
www.tsolucio.com
902 886 938
Spain
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|