From owner-freebsd-questions@FreeBSD.ORG Sat Jun 16 19:20:43 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F01F16A468 for ; Sat, 16 Jun 2007 19:20:43 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id 3B8BB13C4C1 for ; Sat, 16 Jun 2007 19:20:42 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: by py-out-1112.google.com with SMTP id a29so2297650pyi for ; Sat, 16 Jun 2007 12:20:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hI19JXU2tQa9YmlW827d3jGO6nQ6CEEuw10YySRhh1+sIlFg80FKp36gRb3R6OK6/em5ZTM+bU3jpogtX47d4mCrQS7MJYHlZH/fwgBXurjsaHpeozD/aUdrYp+uaMZnhqCUh6MCIZCfiHQADYJcJonUgbmcwHbcapZqCAbRHwg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Fmm8vt3i2gTcZjsT4GpoC0o/LN55RUYI/9/PVgCCYRccfeTB1lVsB9bd6PaPSsAOtSQ2sgS4/lR7STJCVYIGTIWroyDhaUj8myuEoRu8FxI6YRrelJQ84K5/YkTalElzw3QWJT5mn7am3qVQvzvAde8nhWUqt8Rvq1MpITaKETA= Received: by 10.64.195.20 with SMTP id s20mr7076511qbf.1182021642571; Sat, 16 Jun 2007 12:20:42 -0700 (PDT) Received: by 10.65.241.18 with HTTP; Sat, 16 Jun 2007 12:20:42 -0700 (PDT) Message-ID: Date: Sat, 16 Jun 2007 16:20:42 -0300 From: Agus To: freebsd@celestial.com, freebsd-questions@freebsd.org In-Reply-To: <20070616191346.GA32695@ayn.mi.celestial.com> MIME-Version: 1.0 References: <20070616191346.GA32695@ayn.mi.celestial.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: rsync and perms... 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: Sat, 16 Jun 2007 19:20:43 -0000 2007/6/16, Bill Campbell : > > On Sat, Jun 16, 2007, Agus wrote: > >Hi all, > >Trying to use rsync to update my home page in my freebsd, i am not able > to > >keep the owner,group and perms of the files... > >I do all the updates in my ubntu. when everything is ready I run from my > >ubuntu: > >rsync -uav --delete --rsh=ssh /home/user/web/ root@ip_of_bsd:/root/web/ > > > >I tried also with -pog and same results... > > > >Files are updated but the perms and owner and group changes to the ones > in > >my ubuntu.... > > > >I want to keep the bsd existing perms and users...How can i do that?? > > If the users and groups are the same on the system, the -a option > to rsync should preserve owner, group, and permissions. > > One can also use rsync modules in the rsyncd.conf file to specify > user and group. Using rsync modules also has the advantages of > restricting access to the directory specified in the module, and > can also restrict access based on IP addresses. > > Bill > -- > INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC > URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way > FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) > 236-1676 > http://www.celestial.com/ > > You need only reflect that one of the best ways to get yourself a > reputation as a dangerous citizen these days is to go about repeating > the very phrases which our founding fathers used in the struggle for > independence. -- Charles A. Beard > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > OK...so i should first create a group an user with same ids on both machines? or only the names will suffice? And about the modules, i should be running the rsunc daemon which i am not, so i think i ll do the first... Thanks a lot for your help...