From owner-freebsd-questions@FreeBSD.ORG Sun Jun 17 00:35:52 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 A07D216A478 for ; Sun, 17 Jun 2007 00:35:52 +0000 (UTC) (envelope-from lars@adventuras.no) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.freebsd.org (Postfix) with ESMTP id F15B013C469 for ; Sun, 17 Jun 2007 00:35:51 +0000 (UTC) (envelope-from lars@adventuras.no) Received: from ladyda.hovin.local (hjem [84.209.202.7]) (authenticated bits=0) by mail.adventuras.no (8.14.1/8.14.1) with ESMTP id l5H0JMIg045570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 17 Jun 2007 02:19:28 +0200 (CEST) (envelope-from lars@adventuras.no) Message-ID: <46747E09.3010100@adventuras.no> Date: Sun, 17 Jun 2007 02:19:21 +0200 From: Lars Kristiansen User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Jerry McAllister References: <20070616191346.GA32695@ayn.mi.celestial.com> <20070616194931.GA1188@gizmo.acns.msu.edu> In-Reply-To: <20070616194931.GA1188@gizmo.acns.msu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Adventuras: du kan filtrere etter AdvSpamScore over 5-10 X-Adventuras-SpamCheck: not spam, SpamAssassin (not cached, score=-2.364, required 6, autolearn=not spam, ALL_TRUSTED -1.80, AWL 2.04, BAYES_00 -2.60) X-MailScanner-From: lars@adventuras.no X-Spam-Status: No Cc: freebsd@celestial.com, Agus , freebsd-questions@freebsd.org 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: Sun, 17 Jun 2007 00:35:52 -0000 Jerry McAllister skrev: > On Sat, Jun 16, 2007 at 04:20:42PM -0300, Agus wrote: > >> 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... > > I believe the numerical UID and GID is what matters and has to > be the same rather than the names. But correct me if I am wrong. from man rsync: --numeric-ids don't map uid/gid values by user/group name > > ////jerry > > >> Thanks a lot for your help... >> _______________________________________________ >> 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" > _______________________________________________ > 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"