Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2015 15:26:10 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        Kevin <kcurtis106@gmail.com>, freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working"
Message-ID:  <20150814132609.GB68726@ivaldir.etoilebsd.net>
In-Reply-To: <20150814132326.GF24069@FreeBSD.org>
References:  <CADKANo48k-arkDG2LgXbUwmHkBrKO1Dh7avGmgdX8X5nD_qbpg@mail.gmail.com> <20150814125120.GE24069@FreeBSD.org> <20150814132326.GF24069@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--PmA2V3Z32TCmWXqI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 14, 2015 at 01:23:26PM +0000, Glen Barber wrote:
> [bapt@ CC'd.]
>=20
> 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.=
com> 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 20=
15 wrote:
> > >=20
> > > > How were you trying to login with root? ssh,  serial or wihh monito=
r and
> > > > keyboard connected to the pi?
> > >=20
> > > I'm experiencing precisely the same issue when attempting to login as=
 root.
> > > 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
>=20
> It looks like pw(8) is broken on head, specifically the 'usermod'
> command.
>=20
> 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'.
>=20
> On an unaltered RPI2 image (I suspect this is not related to arm alone),
> examining master.passwd shows the problem with the root user:
>=20
>  root:*:0:0::0:0:Charlie &:/root:/bin/csh
>=20
> For the 'freebsd' user, I see what I expect to see:
>=20
>  freebsd:[hash]:1001:1001::0:0:FreeBSD User:/home/freebsd:/bin/csh
>=20
> Then, after using the 'usermod' command on the 'freebsd' user within the
> mounted image, I see this:
>=20
>  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
>=20
> So, something is definitely wrong with 'usermod' in head.
>=20
Let me have a look

Best regards,
Bapt

--PmA2V3Z32TCmWXqI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlXN7HEACgkQ8kTtMUmk6EwbAQCeIO9icsNh5T1eSobkSNjvC3Pq
KAwAnRjV+yvZwgevf0gIxZQbUjV+ALAG
=fCxK
-----END PGP SIGNATURE-----

--PmA2V3Z32TCmWXqI--



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