From owner-freebsd-questions@FreeBSD.ORG Wed Aug 21 12:43:43 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 476694B4 for ; Wed, 21 Aug 2013 12:43:43 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 28B9328AE for ; Wed, 21 Aug 2013 12:43:42 +0000 (UTC) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id EDD9210118B for ; Wed, 21 Aug 2013 19:36:44 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1377088604; x=1378903005; bh=W74KaH29KKHbbb3SWOsnzV WJprRd+Rxn761fWbFZ26A=; b=C+TyfqtAHV0S/+ww8e46+93x6UY0QxA7xYFfUK 31zhojon3rAuD+Rtoy2NTMV9JOnnPwfUleokt0TQRrHq1cxEFPUA+9rDaRrbLPW9 rdKfoCvOnLsnfLZ2IG1CyUas8ib6aD4VxybJF8Q9AtLeDz4WlfBeCpBWo0Xsq+63 6Yda0= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jDVMMiyieGyf for ; Wed, 21 Aug 2013 19:36:44 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 951B4101185 for ; Wed, 21 Aug 2013 19:36:44 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.5/8.14.5/Submit) id r7LCaibi090431; Wed, 21 Aug 2013 19:36:44 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier Nicole To: questions@freebsd.org Subject: Renumber users and groups Date: Wed, 21 Aug 2013 19:36:44 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 12:43:43 -0000 Hello, On my system legacy users come with UID starting from 200 upward, and all users come with GID lower that 100. I know it's not a good idea, but consider that some accounts are over 20 years old! This is not too much a problem with FreeBSD as I can renumber the few FreeBSD services that have a conflicting ID. But now I want to share the user directories with Mac (10.6). On Mac, any id lower than 512 should be reserved for the system. I tried to renumber the conflicting services on Mac OS, but it messes up the system. So I should renumber my users; it's not very difficult to do, but I have over 1TB of user files for 200 users. Is there a clever/fast way to do that (other than find -exec chown)? What pitfall should I avoid? Best regards, Olivier --