Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 11:13:07 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Paul Beard <paulbeard@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: home directory overridden by root?
Message-ID:  <20170227111307.5441830c@kalimero.tijl.coosemans.org>
In-Reply-To: <B9C3096B-970E-468D-9316-9E650BAEC448@gmail.com>
References:  <B9C3096B-970E-468D-9316-9E650BAEC448@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 26 Feb 2017 15:22:23 -0800 Paul Beard <paulbeard@gmail.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170227111307.5441830c>