From owner-freebsd-current@FreeBSD.ORG Thu May 17 13:24:37 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B29FA106564A for ; Thu, 17 May 2012 13:24:37 +0000 (UTC) (envelope-from feld@feld.me) Received: from feld.me (unknown [IPv6:2607:f4e0:100:300::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB9E8FC0C for ; Thu, 17 May 2012 13:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=feld.me; s=blargle; h=In-Reply-To:Message-Id:From:Mime-Version:Date:References:Subject:To:Content-Type; bh=stx3MLhIL5ih+OrtUVQGEj98T4s98kstGJg5FxZofQI=; b=UTlcg1oosLm2hMBMJf14H5D1mQcp3J4Her5FBeS9rkeFXWQC0pJMOzntZONXJlKECKEFV6FTxtJ0fzZmk+6iweNE4EpvjDcs9D5duinLGPQqpXm4ep6AtzuRk+bwFQsD; Received: from localhost ([127.0.0.1] helo=mwi1.coffeenet.org) by feld.me with esmtp (Exim 4.77 (FreeBSD)) (envelope-from ) id 1SV0gx-000Bwr-6k for current@freebsd.org; Thu, 17 May 2012 08:24:37 -0500 Received: from feld@feld.me by mwi1.coffeenet.org (Archiveopteryx 3.1.4) with esmtpa id 1337261064-3288-3287/5/11; Thu, 17 May 2012 13:24:24 +0000 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: current@freebsd.org References: <20120517094949.GK6475@goofy01.vnodelab.local> Date: Thu, 17 May 2012 08:24:24 -0500 Mime-Version: 1.0 From: Mark Felder Message-Id: In-Reply-To: <20120517094949.GK6475@goofy01.vnodelab.local> User-Agent: Opera Mail/11.64 (FreeBSD) X-SA-Score: -1.5 Cc: Subject: Re: FreeBSD and LDAP users, bug or feature? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 13:24:37 -0000 Check man adduser.conf(5) There is an option for "uidstart" which should do what you want. If you set it to 1000 every time you run "adduser" it will show: # adduser Username: foo Full name: bar Uid [1000]: Don't worry -- it's just showing you the starting range. If there is already a UID of 1000 in use it will choose the next available. It's pretty nice because it even fills in holes if you remove users and then add new ones. However, that might be undesirable if you happen to leave files around from previous users and the new user gets the owning UID of those files.... hth