From nobody@FreeBSD.org  Mon Jul 11 11:02:52 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BD88416A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jul 2005 11:02:52 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5668843D8B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jul 2005 11:02:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j6BB2hLC024333
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Jul 2005 11:02:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6BB2hCJ024332;
	Mon, 11 Jul 2005 11:02:43 GMT
	(envelope-from nobody)
Message-Id: <200507111102.j6BB2hCJ024332@www.freebsd.org>
Date: Mon, 11 Jul 2005 11:02:43 GMT
From: Ron van Daal <bugreport@tux.linux666.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pw(8) does not take over skeleton directory perms
X-Send-Pr-Version: www-2.3

>Number:         83253
>Category:       bin
>Synopsis:       pw(8) does not take over skeleton directory perms
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    le
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 11 11:10:15 GMT 2005
>Closed-Date:    Mon Mar 26 23:33:14 GMT 2007
>Last-Modified:  Mon Mar 26 23:40:01 GMT 2007
>Originator:     Ron van Daal
>Release:        FreeBSD 5.4-RELEASE
>Organization:
Syntonic Internet
>Environment:
FreeBSD nietzsche.server.web3.nl 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
pw(8) does not take over the permissions of the skeleton directory (default /usr/share/skel) when adding user with homedirectory creation. It seems that the function now copies the content of the skeleton dir instead of the directory itself.
>How-To-Repeat:
# chmod 0700 /usr/share/skel
# pw useradd TESTUSER -m
# ls -al /home/ |grep TESTUSER
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->le 
Responsible-Changed-By: le 
Responsible-Changed-When: Mon Mar 26 23:18:58 UTC 2007 
Responsible-Changed-Why:  
Have a look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83253 
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Mon Mar 26 23:31:32 UTC 2007 
State-Changed-Why:  
A patch was just committed to -CURRENT to support setting the home directory's 
permissions using a pw(8) option.  I guess that's less obscure than to 
rely on the permissions of a different directory. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=83253 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/83253: commit references a PR
Date: Mon, 26 Mar 2007 23:29:28 +0000 (UTC)

 le          2007-03-26 23:29:20 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/pw          pw.8 pw.c pw_user.c 
   Log:
   Introduce the new option -M to allow to set the permissions of
   the user's newly created home directory.  If omitted, it's derived
   from the current umask.
   
   PR:      bin/16880, bin/83253 (partially), bin/104248
   MFC in:  1 month
   
   Revision  Changes    Path
   1.40      +12 -1     src/usr.sbin/pw/pw.8
   1.29      +2 -3      src/usr.sbin/pw/pw.c
   1.59      +17 -4     src/usr.sbin/pw/pw_user.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
