From owner-freebsd-arm@freebsd.org Fri Aug 14 13:40:22 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AF819B8035 for ; Fri, 14 Aug 2015 13:40:22 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95C3B11B0; Fri, 14 Aug 2015 13:40:21 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wicne3 with SMTP id ne3so19790648wic.1; Fri, 14 Aug 2015 06:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=SJeAbyJpKjhv1pGKlPnGgYZSS0OGRiOW3Cn4hWBqB60=; b=AcHlWVoqJrCmdATdLe6OLXO6HNm0VEHZb3Cv3WAczuRuzOsTtCq+oYHIE/DlE9V26o zaOG0o6D2iOsmH5nkL6QqoZiwjgPhhqF6JYZGYjDsZdYay/HAT6vA9g09PZzOkyyf4O5 gOQPhWfi2kuCMsl37fbJgyFLB3WuLIvcgqQ3M4oEYD3Njq84FlPexZM4Pmf6w5oEQGPi E1JEiBt6z2NjcFWszSO/SeP4x2jMrUtj7L0WUolsCGUef5eKHCm031kbVkELUosXTNqf mGZ9dASuU2UUL64RacZGFB0I8S378AbiKDZwUJmQBW8tkPcm1VdFl7ewbI6WfEycDv7y iANA== X-Received: by 10.180.219.41 with SMTP id pl9mr7100815wic.30.1439559620140; Fri, 14 Aug 2015 06:40:20 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id k12sm8319758wjw.4.2015.08.14.06.40.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 06:40:19 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 14 Aug 2015 15:40:15 +0200 From: Baptiste Daroussin To: Glen Barber Cc: Kevin , freebsd-arm@freebsd.org Subject: Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working" Message-ID: <20150814134015.GC68726@ivaldir.etoilebsd.net> References: <20150814125120.GE24069@FreeBSD.org> <20150814132326.GF24069@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nmemrqcdn5VTmUEE" Content-Disposition: inline In-Reply-To: <20150814132326.GF24069@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 13:40:22 -0000 --nmemrqcdn5VTmUEE 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" 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 > Glen >=20 Fixed in r286775 Thanks for reporting Best regards, Bapt --nmemrqcdn5VTmUEE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlXN778ACgkQ8kTtMUmk6EzkfQCgqwG731jUhv6Z95gFiJQRRkji QKEAnAy3ABGaEFtoSRHyWOSA/V3JmGyZ =+49Q -----END PGP SIGNATURE----- --nmemrqcdn5VTmUEE--