From owner-freebsd-current@FreeBSD.ORG Sat Aug 30 04:56:23 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA82C16A4BF for ; Sat, 30 Aug 2003 04:56:23 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id AB8C943FBD for ; Sat, 30 Aug 2003 04:56:22 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 5030 invoked by uid 5013); 30 Aug 2003 11:53:05 -0000 Date: Sat, 30 Aug 2003 12:53:04 +0100 From: Bruce M Simpson To: Antoine Jacoutot Message-ID: <20030830115304.GF10427@spc.org> Mail-Followup-To: Bruce M Simpson , Antoine Jacoutot , freebsd-current@freebsd.org References: <200308301009.14532.ajacoutot@lphp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200308301009.14532.ajacoutot@lphp.org> User-Agent: Mutt/1.4.1i Organization: SPC cc: freebsd-current@freebsd.org Subject: Re: pam_mkhomedir X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 30 Aug 2003 11:56:24 -0000 On Sat, Aug 30, 2003 at 10:09:14AM +0200, Antoine Jacoutot wrote: > If I remember, pam_mkhomedir was in the contrib section under 4.x. Any idea > why it is not part of FreeBSD anymore ? Or do you know any other way of > auto-creating users homedir ? My virtual hosting setup does this through ProFTPD and doesn't use PAM. The problem with this is that you need to be running as root, or as a user or group which can create under /home, or have the sticky bit on /home. I see the source under RELENG_4 as: /src/contrib/libpam/modules/pam_mkhomedir I can't think of any major reasons why you couldn't just continue using this if it worked for you before. It would probably work from login. sshd might require you to enable UseLogin yes in sshd_config. BMS