From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 31 14:40:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E5451065672 for ; Thu, 31 Mar 2011 14:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C6E1E8FC26 for ; Thu, 31 Mar 2011 14:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2VEeAGs056811 for ; Thu, 31 Mar 2011 14:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2VEeA4N056810; Thu, 31 Mar 2011 14:40:10 GMT (envelope-from gnats) Resent-Date: Thu, 31 Mar 2011 14:40:10 GMT Resent-Message-Id: <201103311440.p2VEeA4N056810@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lance Leger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB1D01065687 for ; Thu, 31 Mar 2011 14:38:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BBC8B8FC23 for ; Thu, 31 Mar 2011 14:38:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2VEcCAS050386 for ; Thu, 31 Mar 2011 14:38:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p2VEcC1j050385; Thu, 31 Mar 2011 14:38:12 GMT (envelope-from nobody) Message-Id: <201103311438.p2VEcC1j050385@red.freebsd.org> Date: Thu, 31 Mar 2011 14:38:12 GMT From: Lance Leger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/156092: pw user flag -m does not respect custom home directory locations X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2011 14:40:11 -0000 >Number: 156092 >Category: misc >Synopsis: pw user flag -m does not respect custom home directory locations >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 31 14:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Lance Leger >Release: 8.1-RELEASE-p2 >Organization: >Environment: >Description: I've got an installation running from mfsroot with custom home directory locations on a seperate ufs filesystem and when I attempt to issue a "pw user mod -m" command, pw gives me the following error: pw: mkdir '/home': Read-only file system Two issues here: 1) /home does not even exist on my system 2) the users custom home directory location is clearly defined in /etc/passwd Now if I re-mount my mfsroot filesystem read-write, issue mkdir /home, then attempt to issue same command again it creates my users custom home directory (i.e. /d/home/user) Another observation. If I leave the /home directory in place, re-mount my mfsroot filesystem read-only again, then attempt to issue the same command again it works (even though it has a reason now to complain that /home is read-only) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: