Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working"

Glen Barber gjb at FreeBSD.org
Fri Aug 14 13:23:29 UTC 2015


[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 at releng2:/ # /usr/sbin/pw -R /mnt usermod freebsd -w yes
 root at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150814/73067b38/attachment.bin>


More information about the freebsd-arm mailing list