Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2015 09:32:29 -0400
From:      "Kevin Curtis, Jr." <kcurtis@libracode.com>
To:        gjb@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working"
Message-ID:  <CADKANo5iviFpKZdW3i_vwOuMzUUXkYA_NZApEjV2vH7jFfvbwQ@mail.gmail.com>
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
On Fri, Aug 14, 2015 at 9:23 AM, Glen Barber <gjb@freebsd.org> wrote:
> [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.com> wrote:
>> > >>
>> > >> root/root
>> > >> root/password/
>> > >> root/admin
>> > >> root/
>> > >> root/administrator
>> > >> root/freebsdarm
>> > >> etc...
>> > >>
>> > >> freebsd/freebsd is a user though and works.....
>> > >>
>> >
>> > > jungle Boogie jungleboogie0 at gmail.com Mon Aug 10 20:37:32 UTC 2015 wrote:
>> >
>> > > How were you trying to login with root? ssh,  serial or wihh monitor and
>> > > keyboard connected to the pi?
>> >
>> > 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.
>> >
>> > Build/image was:
>> > FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20150804-r286285.img
>> >
>>
>> I'll take a look into this.
>>
>
> 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
>  freebsd:*:1001:1001::0:0:FreeBSD User:/home/freebsd:/bin/csh
>
> So, something is definitely wrong with 'usermod' in head.
>
> Glen
>

Thank you, Glen.  I attempted to view master.passwd as well, however,
due to an unrelated issue, the console text is out of range by roughly 13
characters (too far to the left) of my monitors. Should I start a different
thread regarding this other issue?

Best regards,

Kevin



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