From owner-freebsd-questions@FreeBSD.ORG Mon Oct 9 20:56:48 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A0A816A416 for ; Mon, 9 Oct 2006 20:56:48 +0000 (UTC) (envelope-from up@3.am) Received: from richard2.pil.net (mail.pil.net [207.7.198.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 5B11243DA0 for ; Mon, 9 Oct 2006 20:56:27 +0000 (GMT) (envelope-from up@3.am) Received: (qmail 54348 invoked by uid 1825); 9 Oct 2006 20:56:10 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 9 Oct 2006 20:56:10 -0000 Date: Mon, 9 Oct 2006 16:56:10 -0400 (EDT) From: up@3.am X-X-Sender: up@richard2.pil.net To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Niek Dekker Subject: Re: How does useradd determine the default mailbox/maildir location 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: Mon, 09 Oct 2006 20:56:48 -0000 What I do is remove FreeBSD's adduser script and make my own, which does something like this: pw useradd $USERNAME -g users -L users -m -s /bin/true -k /etc/skel \ || exit passwd $USERNAME echo $USERNAME > /home/$USERNAME/.qmail-default chmod 711 /home/$USERNAME Of course, you need an /etc/skel with a properly set up Maildir (plus .qmail, public_html or anything else you want) and edit those tags to suit your requirements. HTH, James Smallacombe PlantageNet, Inc. CEO and Janitor up@3.am http://3.am =========================================================================