Date: Fri, 14 Aug 2015 13:23:26 +0000 From: Glen Barber <gjb@FreeBSD.org> To: Kevin <kcurtis106@gmail.com> Cc: freebsd-arm@freebsd.org, Baptiste Daroussin <bapt@FreeBSD.org> Subject: Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working" Message-ID: <20150814132326.GF24069@FreeBSD.org> In-Reply-To: <20150814125120.GE24069@FreeBSD.org> References: <CADKANo48k-arkDG2LgXbUwmHkBrKO1Dh7avGmgdX8X5nD_qbpg@mail.gmail.com> <20150814125120.GE24069@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--BqNvIJgrK1/MQy2W Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [bapt@ CC'd.] On Fri, Aug 14, 2015 at 12:51:20PM +0000, Glen Barber wrote: > On Fri, Aug 14, 2015 at 08:40:15AM -0400, Kevin wrote: > > >> On Aug 10, 2015 1:01 PM, "Andrew Gay" <gay.carson.andrew at gmail.co= m> wrote: > > >> > > >> root/root > > >> root/password/ > > >> root/admin > > >> root/ > > >> root/administrator > > >> root/freebsdarm > > >> etc... > > >> > > >> freebsd/freebsd is a user though and works..... > > >> > >=20 > > > jungle Boogie jungleboogie0 at gmail.com Mon Aug 10 20:37:32 UTC 2015= wrote: > >=20 > > > How were you trying to login with root? ssh, serial or wihh monitor = and > > > keyboard connected to the pi? > >=20 > > I'm experiencing precisely the same issue when attempting to login as r= oot. > > I'm using a keyboard and monitor on a Raspberry Pi 2. > >=20 > > Build/image was: > > FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20150804-r286285.img > >=20 >=20 > I'll take a look into this. >=20 It looks like pw(8) is broken on head, specifically the 'usermod' command. The password for the 'freebsd' user is set as a result of 'useradd', which includes '-w yes', forcing the password to equal the account name. For the root user, which already exists, the password is set to 'root' by using 'usermod' with '-w yes'. On an unaltered RPI2 image (I suspect this is not related to arm alone), examining master.passwd shows the problem with the root user: root:*:0:0::0:0:Charlie &:/root:/bin/csh For the 'freebsd' user, I see what I expect to see: freebsd:[hash]:1001:1001::0:0:FreeBSD User:/home/freebsd:/bin/csh Then, after using the 'usermod' command on the 'freebsd' user within the mounted image, I see this: root@releng2:/ # /usr/sbin/pw -R /mnt usermod freebsd -w yes root@releng2:/ # grep ^freebsd /mnt/etc/master.passwd=20 freebsd:*:1001:1001::0:0:FreeBSD User:/home/freebsd:/bin/csh So, something is definitely wrong with 'usermod' in head. Glen --BqNvIJgrK1/MQy2W Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVzevJAAoJEAMUWKVHj+KTjKMP/Rtli5sudQRvK/xhmGjuc9QJ 7uhGqVNlNRqs3gd6bpD35kc6aqlUvSqYZ+LNS9rcGT9T+PHAbphmwjBUhj5wfp0N oe7RgjZqguMEV0st8tm+LXCtTmDKcxBGMEsOXrH00x6f6ZG/XbesuaUADMqq188g biyx5bMQGhYqDCVas7XKvwtBiDzK9fVANtT6aTiy6yPSjmUwT2GBeBgwIExc0Zf0 WNu9soGMltmq9nJJe8VT4ZNxM/8kVddkNwtvXR06XwxTKibGaCVDFneK/W0puALs PsEQOyAEjyK0iTThQjZOptZUniDbHuLanVCA5p3UcNsFFq93vB52OdF3sRpjJvH7 Gd9CtfRMMtO/8OlVmcLaODGceWgzy3NuXRBVSCrvPMAgT9ALd7BNKuMXeMXyPE7/ IenN4lLupAlEegz/w6tuL1TBfbUuQIbeOjWm8hpi4Aa2/T0jYtbb1EkPX+YQ52Z4 Od9Byjh0GnuPih6dmUo/Qq2vxxKBu2OUioy84TQezdCFW2a1aXMLS1nQDIFkxkU9 yMNABETqRRHr9RlIkUfe/zvJoHRWkyx5g2niJXGxviNAp9TFAFK0FAjd+DAHIC22 kEd6Q92aKu/uPTfOyn29cW/66B3FiztWC8ri23sW/4rSb/KJDytEIE1x461a/1U1 iR9wQnI2KaPOuBDHBqat =u+Ck -----END PGP SIGNATURE----- --BqNvIJgrK1/MQy2W--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150814132326.GF24069>