From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 17:37:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B834116A41F for ; Wed, 11 Jan 2006 17:37:44 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3640043D7D for ; Wed, 11 Jan 2006 17:37:33 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 4659 invoked by uid 510); 11 Jan 2006 17:40:28 +0000 Received: from 84.92.24.252 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.87/1146. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(84.92.24.252):SA:0(-3.8/5.0):. Processed in 2.066245 secs); 11 Jan 2006 17:40:28 -0000 X-Spam-Status: No, hits=-3.8 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(84.92.24.252):SA:0(-3.8/5.0):. Processed in 2.066245 secs Process 4652) Received: from mail.bathnetworks.com (HELO ?84.92.24.252?) (bsd@bathnetworks.com@84.92.24.252) by lmail.bathnetworks.co.uk with SMTP; 11 Jan 2006 17:40:25 +0000 From: Robert Slade To: user In-Reply-To: References: Content-Type: text/plain Message-Id: <1137001225.4076.16.camel@lmail.bathnetworks.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 11 Jan 2006 17:40:25 +0000 Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , "freebsd-questions@freebsd.org" Subject: Re: how should I (best practice) set up permissions for rsync ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2006 17:37:44 -0000 On Wed, 2006-01-11 at 03:47, user wrote: > On Wed, 11 Jan 2006, Wojciech Puchar wrote: > > > > Hi, > > > > > > I want to rsync /usr/home from one machine to another, for purposes of > > > backup. > > > > > > > i do: > > > > rsync -e "rsh" -avzrlHpogDtS --delete --delete-excluded --force > > \ --exclude-from=../$1-exclude root@$1:/ . > > > > where $1 is server name > > > Yeah ... I know how to do that ... I wasn't asking how to rsync it, I was > asking how I could: > > a) keep remote root logins _disabled_ > > and > > b) keep default freebsd permissions on the /usr/home directory > > and still do the rsync ... in your example, you are remotely logging in as > root, which I want to avoid. > > Any suggestions ? If you don't want to log on as root, then you can run a rsync as each user as say a user cron job. Just a thought Rob