Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A8736E00CAB; Tue, 14 May 2019 18:17:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8B86AE00A0C for ; Tue, 14 May 2019 18:17:20 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id x4F1HHgj001370 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 14 May 2019 18:17:17 -0700 (PDT) Received: from [128.224.162.148] (128.224.162.148) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 14 May 2019 18:17:15 -0700 To: Greg Wilson-Lindberg , Yocto list discussion References: <2086bca8f57442acac5ba11c3d2712f1@sakuraus.com> From: ChenQi Message-ID: Date: Wed, 15 May 2019 09:28:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <2086bca8f57442acac5ba11c3d2712f1@sakuraus.com> X-Originating-IP: [128.224.162.148] Subject: Re: problem adding a user X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2019 01:17:21 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit On 05/15/2019 08:34 AM, Greg Wilson-Lindberg wrote: > I'm trying to use the example in "Embedded Linux Systems with the Yocto Project" to add a user to my Yocto build. In the book the sample code: > > useradd -p `openssl passwd ${DEV_PASSWORD}` developer; \ > > uses openssl to generate the encrypted password string to pass to useradd. I have never been able to get this to work. When I run the openssl > command on the cmd line I get a different value every time, this seems wrong, How can the password code compare against it if every encode > produces a different value? > > I am getting the user added to the system, the home directory shows up and the user is in the passwd and group files. I just can't login to the > account. > > I've obviously got something confused, any help would be appreciated. > > Greg Wilson-Lindberg > You could just use something like: useradd -P 123456 developer Best Regards, Chen Qi