Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2015 09:49:35 -0400
From:      "Kevin Curtis, Jr." <kcurtis@libracode.com>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        Glen Barber <gjb@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working"
Message-ID:  <CADKANo6j0dpmLhAiuCnLkEHDaW3QHq1yYXck5rSZeA-%2BESb1JA@mail.gmail.com>
In-Reply-To: <20150814134015.GC68726@ivaldir.etoilebsd.net>
References:  <CADKANo48k-arkDG2LgXbUwmHkBrKO1Dh7avGmgdX8X5nD_qbpg@mail.gmail.com> <20150814125120.GE24069@FreeBSD.org> <20150814132326.GF24069@FreeBSD.org> <20150814134015.GC68726@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 14, 2015 at 9:40 AM, Baptiste Daroussin <bapt@freebsd.org> wrote:
> On Fri, Aug 14, 2015 at 01:23:26PM +0000, Glen Barber 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
>>
>
> Fixed in r286775
>
> Thanks for reporting
>
> Best regards,
> Bapt

Greatly appreciated, thanks for the prompt response!

Best regards,

Kevin



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