From owner-freebsd-doc@FreeBSD.ORG Fri Sep 29 22:20:40 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C150B16A416 for ; Fri, 29 Sep 2006 22:20:40 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4603A43D69 for ; Fri, 29 Sep 2006 22:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8TMKJZx039347 for ; Fri, 29 Sep 2006 22:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8TMKJXH039346; Fri, 29 Sep 2006 22:20:19 GMT (envelope-from gnats) Resent-Date: Fri, 29 Sep 2006 22:20:19 GMT Resent-Message-Id: <200609292220.k8TMKJXH039346@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, User & Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 287E916A492 for ; Fri, 29 Sep 2006 22:15:37 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [72.9.101.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86B6B43D8C for ; Fri, 29 Sep 2006 22:14:48 +0000 (GMT) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (localhost [127.0.0.1]) by prime.gushi.org (8.13.6/8.13.6) with ESMTP id k8TMF20A091353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 29 Sep 2006 18:15:02 -0400 (EDT) (envelope-from danm@prime.gushi.org) Received: (from danm@localhost) by prime.gushi.org (8.13.6/8.13.6/Submit) id k8TMF1JB091352; Fri, 29 Sep 2006 18:15:01 -0400 (EDT) (envelope-from danm) Message-Id: <200609292215.k8TMF1JB091352@prime.gushi.org> Date: Fri, 29 Sep 2006 18:15:01 -0400 (EDT) From: Dan Mahoney To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/103828: pw/adduser manpage make no mention of "dot.file" replace syntax in /usr/share/skel X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: User & List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2006 22:20:40 -0000 >Number: 103828 >Category: docs >Synopsis: pw/adduser manpage make no mention of "dot.file" replace syntax in /usr/share/skel >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 29 22:20:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dan Mahoney (danm@prime.gushi.org) >Release: FreeBSD 6.1-RELEASE-p3 i386 >Organization: Gushi Systems >Environment: System: FreeBSD prime.gushi.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Aug 12 16:12:54 EDT 2006 danm@newprime.gushi.org:/usr/obj/usr/src/sys/GENERIC i386 Standard FreeBSD 6.1 release system, any hardware. >Description: The "adduser" command calls the "pw" command. Both these commands by default populate a user's directory from a "skeleton" directiory, by default /usr/share/skel. However, a substitution is present whereby "dotfiles" such as .cshrc can be placed in /usr/share/skel as dot.cshrc. When pw populates the directory, it strips the "dot" from the file name and makes it the file's true name, i.e. dot.cshrc --> .cshrc. >How-To-Repeat: man pw man adduser ls /usr/share/skel (scratch head about dot.cshrc syntax) >Fix: Two problems exist. One, that this behavior is not documented. Documentation is as easy as sticking the paragraph above into the relevant manpages (pw/adduser). The second, is that the behavior is undefined if /usr/share/skel contains BOTH a .cshrc and a dot.cshrc (as I can't make sense of C, someone else might need to help on this end.) The fix would be to document this as well. >Release-Note: >Audit-Trail: >Unformatted: