Tim Fletcher wrote at about 19:53:25 +0100 on Monday, September 26, 2011:
 > On Mon, 2011-09-26 at 15:37 +0200, Maarten te Paske wrote:
 > 
 > > OK, I will read a bit more into the rsync documentation. I thought this
 > > way I wouldn't be able to limit the privileges through sudo, but maybe
 > > I'm wrong.
 > 
 > I use the following line in /etc/sudoers to allow the user backups to
 > call rsync as root. Note this line does break rsync based recovery, but
 > this is part of the plan as it prevents the backuppc server writing to
 > the client being backed up.
 > 
 > backups ALL=NOPASSWD: /usr/bin/rsync --server --sender *
 > 
 > You will also need to remove the "requiretty" option from /etc/sudoers
 > too.

You can do this more *selectively* by instead *adding* the following
line:
        Defaults:backups !requiretty
where I am assuming 'backups' is the backuppc user name for you.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to