From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#33422: /etc/passwd on GuixSD can end up containing default home directories Date: Sun, 18 Nov 2018 17:44:48 -0500 Message-ID: <20181118224448.GB25252@jasmine.lan> References: <87wopam47t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOVoN-0000Z6-E3 for bug-guix@gnu.org; Sun, 18 Nov 2018 17:45:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOVoM-0005TC-Js for bug-guix@gnu.org; Sun, 18 Nov 2018 17:45:03 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55180) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOVoM-0005T6-Gp for bug-guix@gnu.org; Sun, 18 Nov 2018 17:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gOVoM-0005Zn-Dc for bug-guix@gnu.org; Sun, 18 Nov 2018 17:45:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87wopam47t.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 33422@debbugs.gnu.org --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 18, 2018 at 11:05:26PM +0100, Ludovic Court=C3=A8s wrote: > On IRC, fps reported this issue: their user account was declared like > this: >=20 > 26 (users (cons (user-account =20 > 27 (name "fps") =20 > 28 (comment "fps") =20 > 29 (group "users") =20 > 30 (supplementary-groups '("wheel" "netdev" =20 > 31 "audio" "video"))=20 > 32 (home-directory "/home/bob")) ;<--- notice =E2=80= =9Cbob=E2=80=9D! >=20 > =E2=80=A6 yet /etc/passwd would refer to /home/fps for user =E2=80=9Cfps= =E2=80=9D (this is on a > fresh GuixSD 0.15.0 install.) >=20 > This in turn would prevent logging in as =E2=80=9Cfps=E2=80=9D because /h= ome/fps didn=E2=80=99t > exist (meaning the =E2=80=98user-homes=E2=80=99 Shepherd service created = /home/bob, not > /home/fps.) It slightly obscures a part of config.scm that is otherwise straightforward, but I do this: (home-directory (string-append "/home/" name)) =2E.. which would have avoided the issue. Maybe the value of home-directory should be implicit when unspecified. But, that is missing the point, which I think is that home directories are not being handled in a consistent and unified way. --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvx62AACgkQJkb6MLrK fwiyWRAA32sRy24WBjjxOZ04xncbK+xYDIQZVhaR1JIoPjna+DyS0XTEBZeGDx/r D0d5XE1keJ89aZbCAnXXu8VUf7tv2R1XUps+e1YDXjWdPn24UYpXgOCnhgTdgrR0 z5Mc+w813/JtU/xEoZI15NjK1VGSkjL4nAvR6K+LFKFiPyNDFMZfBBAkhoVkpz2M 1/OZa2LGBpJLUI6Mu/VN3yN6znoQ1h5bEyPmF8my/TfAlhomgC//D8UjC92hsp7t Svm+q2R2eObFdcfdG6kDba7MVBA1lS7/ffanZ07rX0M3DJrhVSd38islkd1cw0wg wNHxmytVSjdU0FLbD8rhiQv9c8bwwhEKwijZzWvvKmQaR7CYQU716esRm3ZYijg3 qxltDbLU+vA81nHrSoOU+TNNmYtAQo+tDzv0UhzvDpN9MKXbzTaeHgCdZzi3fwHR XtW8MHJ+vxHKv/G14XFJoJoIWfVOK2THAc/2p28CGUrQcKnnQi6LhXQcY6vs4uwj bh4CbvOGiP9PAF4+ZOUQBH0ANGUuY4Wxb14nGiiH/vKqr1YT/BnR2PpvaoVxM+cI kJInPpR2iaaeZUg9UWW+G2BlwwVGMC/o7T9Xcoxxxjpb10D3RlgmzpKIC1WZpByX 4JB4HRVVd0B9Izxa9TgbONLxxs3jHzbdD33uT1Atc7nWFxG00xI= =qwkR -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y--