From wollman@zfsnfs.csail.mit.edu  Tue Mar  6 17:02:00 2012
Return-Path: <wollman@zfsnfs.csail.mit.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 858B91065670
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Mar 2012 17:02:00 +0000 (UTC)
	(envelope-from wollman@zfsnfs.csail.mit.edu)
Received: from zfsnfs.csail.mit.edu (zfsnfs.csail.mit.edu [128.30.113.117])
	by mx1.freebsd.org (Postfix) with ESMTP id 4F0C68FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Mar 2012 17:01:59 +0000 (UTC)
Received: from zfsnfs.csail.mit.edu (localhost [127.0.0.1])
	by zfsnfs.csail.mit.edu (8.14.5/8.14.5) with ESMTP id q26H1xoC073914
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 Mar 2012 12:01:59 -0500 (EST)
	(envelope-from wollman@zfsnfs.csail.mit.edu)
Received: (from wollman@localhost)
	by zfsnfs.csail.mit.edu (8.14.5/8.14.5/Submit) id q26H1xZP073913;
	Tue, 6 Mar 2012 12:01:59 -0500 (EST)
	(envelope-from wollman)
Message-Id: <201203061701.q26H1xZP073913@zfsnfs.csail.mit.edu>
Date: Tue, 6 Mar 2012 12:01:59 -0500 (EST)
From: Garrett Wollman <wollman@csail.mit.edu>
Reply-To: Garrett Wollman <wollman@csail.mit.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pw(8) should have a hook for home directory creation
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         165780
>Category:       bin
>Synopsis:       pw(8) should have a hook for home directory creation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 06 17:10:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
MIT Computer Science & Artificial Intelligence Lab
>Environment:
System: FreeBSD zfsnfs.csail.mit.edu 9.0-RELEASE FreeBSD 9.0-RELEASE #3 r232145M: Sun Feb 26 20:00:10 EST 2012 wollman@zfsnfs.csail.mit.edu:/usr/obj/usr/src/sys/ZFSNFS amd64

>Description:

pw(8) will always use mkdir(2) to create home directories.  In some
situations, this is inappropriate, and it should be possible for the
administrator to configure a hook script that is called instead.  Such
a script might be used, for example, to automatically create a new ZFS
dataset for each new home directory, in accordance with recommended
practice on ZFS.

>How-To-Repeat:

Read pw(8).  Examine the code in pw_user.c.  Be sad.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
