From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 07:57:00 2003 Return-Path: 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 F3FEB16A4B3 for ; Mon, 6 Oct 2003 07:56:59 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1E7443FE5 for ; Mon, 6 Oct 2003 07:56:57 -0700 (PDT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id h96Ew6l3033773; Mon, 6 Oct 2003 16:58:06 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id h96Ew6e0033772; Mon, 6 Oct 2003 16:58:06 +0200 (CEST) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Mon, 6 Oct 2003 16:58:06 +0200 From: Ruben de Groot To: Redmond Militante Message-ID: <20031006145806.GA33527@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Redmond Militante , freebsd-questions@freebsd.org References: <20031006135802.GA868@darkpossum> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031006135802.GA868@darkpossum> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: rsync/mirroring permissions problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 14:57:00 -0000 On Mon, Oct 06, 2003 at 08:58:02AM -0500, Redmond Militante typed: > hi all > > i'm trying to do a 'push' rsync operation to mirror the contents of my websites root directory on one machine over to a remote machine. rsync is installed on both machines. the command i'm using to rsync is > > rsync -e ssh -avz --exclude "/phpSysInfo" --exclude "/webalizer" --exclude "/phpMyAdmin" --delete --stats /usr/local/www/data-dist/ remote.machine.com=:/usr/local/www/data-dist/ > > this works, for the most part. the majority of files on the remote directory are sync'ed correctly after the operation. the problem is - this websites root directory is owned by one user - webuser, who is a member of group - webuser. various subdirectories inside of the websites root folder are owned by other users, who are also members of the 'webuser' group. the files/folders in the websites root direcotry are chmod'ed 775. > > this causes problems with the rsync operation, as i'm rsync'ing as webuser:webuser. i get errors during the rsync process such as > > failed to set permissions on studentwork/winter03old/war/images : Operation not permitted > > again, the majority of files sync correctly. but can anyone recommend a good way around this? i'm not able at this point to limit the websites root directory to only one user account... There's only one way to do this: rsync as root. Only root can change ownership. > thanks > redmond > > -- > FreeBSD 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Fri Oct 3 21:30:51 CDT 2003 > 8:30AM up 22:46, 1 user, load averages: 1.69, 1.61, 1.47 > > Ever notice that even the busiest people are never too busy to tell you > just how busy they are. >