From owner-freebsd-arm@freebsd.org Fri Aug 14 13:32:31 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 0E5169B8E20 for ; Fri, 14 Aug 2015 13:32:31 +0000 (UTC) (envelope-from kcurtis106@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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 9EA851BB9; Fri, 14 Aug 2015 13:32:30 +0000 (UTC) (envelope-from kcurtis106@gmail.com) Received: by wibhh20 with SMTP id hh20so20995346wib.0; Fri, 14 Aug 2015 06:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=+z4teQKubo74gksJlcpOmLeDqLPbPFN9m67yzjSAGRU=; b=0RCYkPtyWLA1ep75USqAXSFqjTWOWZYydsr5KEUBJf4LgIIVPUZ9DHk1L8tV3PJnuG +93WyDJPnhhqxLkuS/MyHnMv1Tal2lxXaBP3EwwNl4OPPiacH+pHlsSMUV16H1BVVJCA 01wjm/ILfMmlZ89oOQ/pu5kRcvfqwAeF4BD6GBF+CxfAC3IdXsk5LOORddphfDzkn34K 6nYvVicR/2H2dcvUudt2uhsLn1qqZwLPlUYHxBzxe24QKpjCb0cA/Pr/vBJ5tdLbk5Zu loG4BlQNIn1OpPiHICAMyskNKH7W2unN85lD1i+Lk/7wW83F+LAIdWoNqhJ8v4wma4Kr rHQg== MIME-Version: 1.0 X-Received: by 10.180.219.101 with SMTP id pn5mr6441924wic.89.1439559149124; Fri, 14 Aug 2015 06:32:29 -0700 (PDT) Sender: kcurtis106@gmail.com Received: by 10.28.49.197 with HTTP; Fri, 14 Aug 2015 06:32:29 -0700 (PDT) In-Reply-To: <20150814132326.GF24069@FreeBSD.org> References: <20150814125120.GE24069@FreeBSD.org> <20150814132326.GF24069@FreeBSD.org> Date: Fri, 14 Aug 2015 09:32:29 -0400 X-Google-Sender-Auth: wZ7PHILvDlTwn_WoBuCRThBskZM Message-ID: Subject: Re: Raspberry Pi 2 FreeBSD 11.0 Aug 4th snapshot "root Password not working" From: "Kevin Curtis, Jr." To: gjb@freebsd.org, freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 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:32:31 -0000 On Fri, Aug 14, 2015 at 9:23 AM, 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" 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