From owner-freebsd-questions@freebsd.org Mon Feb 27 10:14:26 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 5A032CE9F44 for ; Mon, 27 Feb 2017 10:14:26 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay114.isp.belgacom.be (mailrelay114.isp.belgacom.be [195.238.20.141]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6BE61A3 for ; Mon, 27 Feb 2017 10:14:24 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2BSCABd+rNY/0nD8VFeGwEBAQMBAQEJA?= =?us-ascii?q?QEBg1BRgRmDW4oIc5BtKQGHYo0pgg2GIgKCEEAYAQIBAQEBAQEBYiiEcQEFIyY?= =?us-ascii?q?NIxALGAICBQ0BAQwGAgIPEhgeBhOJXAMZr1OCJoNUg1gNhAABAQEBBgEBAQEkg?= =?us-ascii?q?QuKMIJRggNIAQWCOIJfBZtkOo0rW4QUdpAvikqIZx84gQE1LAiFDR2BYj81h18?= =?us-ascii?q?NF4IXAQEB?= X-IPAS-Result: =?us-ascii?q?A2BSCABd+rNY/0nD8VFeGwEBAQMBAQEJAQEBg1BRgRmDW4o?= =?us-ascii?q?Ic5BtKQGHYo0pgg2GIgKCEEAYAQIBAQEBAQEBYiiEcQEFIyYNIxALGAICBQ0BA?= =?us-ascii?q?QwGAgIPEhgeBhOJXAMZr1OCJoNUg1gNhAABAQEBBgEBAQEkgQuKMIJRggNIAQW?= =?us-ascii?q?COIJfBZtkOo0rW4QUdpAvikqIZx84gQE1LAiFDR2BYj81h18NF4IXAQEB?= Received: from 73.195-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.195.73]) by relay.skynet.be with ESMTP; 27 Feb 2017 11:13:11 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id v1RAD84J011208; Mon, 27 Feb 2017 11:13:09 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Mon, 27 Feb 2017 11:13:07 +0100 From: Tijl Coosemans To: Paul Beard Cc: freebsd-questions@freebsd.org Subject: Re: home directory overridden by root? Message-ID: <20170227111307.5441830c@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 10:14:26 -0000 On Sun, 26 Feb 2017 15:22:23 -0800 Paul Beard wrote: > For some reason my home directory reverts to/is confused with /root. I > login, get dropped at home, but cd will take me to /root and any > command I run assumes I am in root=E2=80=99s (non-writable) home. How can= I > fix that? I can=E2=80=99t quite make out what=E2=80=99s wrong. >=20 > FreeBSD www 10.3-STABLE FreeBSD 10.3-STABLE #0 r312644: Sun Jan 22 > 11:36:16 PST 2017 root@www:/usr/obj/usr/src/sys/SHUTTLE i386 >=20 > ssh www > [successful login] > [paul@www /home/paul]$ whoami > paul > [paul@www /home/paul]$ id > uid=3D1001(paul) gid=3D1001(paul) groups=3D1001(paul),0(wheel) > [paul@www /home/paul]$ cd=20 > [paul@www ~]$ pwd > /root > [paul@www ~]$ sudo grep paul /etc/master.passwd=20 > Password: > paul:[redacted]:1001:1001::0:0:paul:/home/paul:/usr/local/bin/bash > [paul@www ~]$=20 echo $HOME If that's not correct check if some login script sets that variable and remove that. Its value should be correct by default.