From owner-freebsd-questions@FreeBSD.ORG Fri Feb 16 16:12:56 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 2222416A400 for ; Fri, 16 Feb 2007 16:12:56 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D373313C4B4 for ; Fri, 16 Feb 2007 16:12:55 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l1GGAwpK080414; Fri, 16 Feb 2007 11:10:58 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l1GGAvLq080413; Fri, 16 Feb 2007 11:10:57 -0500 (EST) (envelope-from jerrymc) Date: Fri, 16 Feb 2007 11:10:57 -0500 From: Jerry McAllister To: Petre Bandac Message-ID: <20070216161057.GB80219@gizmo.acns.msu.edu> References: <20070216170737.38f9febf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070216170737.38f9febf@localhost> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: messing with uid/gid in passwd 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: Fri, 16 Feb 2007 16:12:56 -0000 On Fri, Feb 16, 2007 at 05:07:37PM +0200, Petre Bandac wrote: > hallo > > I have the following problem > > I hourly rsync data from another computer to my bsd machine and the > transferred files have different uid that the user I'd like to use them > (preserve their initial uid/gid) > > is there a problem if I manually change the uid of some (already > created) users in passwd (like for mysql, www, postfix) Do you mean on the BSD machine? There should be no problem _if_: The UID & GID do not conflict with another existing user or group. and You get all of the incidences of the use of that user's UID & GID changed on all of that user's files. But, if it conflicts or you miss some files somewhere, it can come back and bite you. Use find(1) with -group and then with -user to look for the files. ////jerry > > thanks, > > petre > > -- > > Petre Bandac > > Network Scientist > > - > petre@kgb.ro > _______________________________________________ > 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"