From owner-freebsd-questions@freebsd.org Mon Feb 27 14:58:11 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7EA5CEFA28 for ; Mon, 27 Feb 2017 14:58:11 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp4.irishbroadband.ie [62.231.32.6]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84BBDAE3 for ; Mon, 27 Feb 2017 14:58:11 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ciMkH-0001Mg-2Z for freebsd-questions@freebsd.org; Mon, 27 Feb 2017 14:57:51 +0000 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.88 (FreeBSD)) (envelope-from ) id 1ciMkk-0006XM-OB for freebsd-questions@freebsd.org; Mon, 27 Feb 2017 14:58:18 +0000 Date: Mon, 27 Feb 2017 14:57:25 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: home directory overridden by root? Message-Id: <20170227145725.81ca3555a2fbfa472fa3e6a6@sohara.org> In-Reply-To: References: <20170227111307.5441830c@kalimero.tijl.coosemans.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 14:58:11 -0000 On Mon, 27 Feb 2017 06:44:42 -0800 Paul Beard wrote: > > > On Feb 27, 2017, at 2:13 AM, Tijl Coosemans wrote: > > > > If that's not correct check if some login script sets that variable > > and remove that. Its value should be correct by default. > > I have no idea what could set that other than that some . script. But I > found nothing that set any environment variables. Those or login.conf or /etc/profile are about the only places it should be able to happen. > I created a .bashrc that explicitly sets it for now. I may create a new > user and see if that account gets its $HOME set properly. HOME normally gets set up correctly so something is awry on your system. Creating another user is well worth doing, it will tell you straight away whether the problem is in your own environment setup or in the system. -- Steve O'Hara-Smith