From owner-freebsd-questions@FreeBSD.ORG Tue Oct 10 20:28:44 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 5243E16A47C for ; Tue, 10 Oct 2006 20:28:44 +0000 (UTC) (envelope-from niekdekker@gmail.com) Received: from smtp08.wanadoo.nl (smtp08.wanadoo.nl [194.134.35.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA0CD43D46 for ; Tue, 10 Oct 2006 20:28:41 +0000 (GMT) (envelope-from niekdekker@gmail.com) Received: from [192.168.1.10] (s5591888a.adsl.wanadoo.nl [85.145.136.138]) by smtp8.wanadoo.nl (Postfix) with ESMTP id 9CD5D77A25 for ; Tue, 10 Oct 2006 22:28:40 +0200 (CEST) Message-ID: <452C0277.2000402@gmail.com> Date: Tue, 10 Oct 2006 22:28:39 +0200 From: Niek Dekker User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <452A6AA5.2010400@gmail.com> <44ac44dwct.fsf@be-well.ilk.org> In-Reply-To: <44ac44dwct.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How does useradd determine the default mailbox/maildir location for new users 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: Tue, 10 Oct 2006 20:28:44 -0000 Hi Lowell, thanks for the clarification. I'll have a look at the adduser script and probably make my own version. Regards, Niek Lowell Gilbert wrote: > Niek Dekker writes: > > >> I am running Exim 4.62 MTA on FBSD 6.0_release. >> When I create a new user using useradd, a mailbox file for the new >> user is created in /var/mail. >> > > I assume you mean adduser(8). > > >> As I am using Maildir with maildirs in /var/mail, I do not want that. >> > > Hmm, yes. > > >> My question is, where is this behavior of useradd configured? >> > > It isn't. It appears to be hardwired into pw(8), which is the basic > tool around which adduser(8) is built. > > >> I cannot find this in the handbook. There is no /etc/useradd.conf >> neither an /etc/pw.conf on my system and also the contents of >> /usr/share/skel do not seem to make a difference. >> > > And none of those are documented to do anything of the sort. > I think you should just write your own wrapper. You could write it as > a wrapper for adduser, or you could make your own version of adduser > (which is just a shell script). > >