From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FmxTp-0003mU-1i for garchives@archives.gentoo.org; Sun, 04 Jun 2006 18:37:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k54Ia1iZ010750; Sun, 4 Jun 2006 18:36:01 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k54Ia0pe003937 for ; Sun, 4 Jun 2006 18:36:01 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 00C1A64BB2 for ; Sun, 4 Jun 2006 18:36:00 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16878-10 for ; Sun, 4 Jun 2006 18:35:49 +0000 (UTC) Received: from mail48.e.nsc.no (mail48.e.nsc.no [193.213.115.48]) by smtp.gentoo.org (Postfix) with ESMTP id D6AFF64BA2 for ; Sun, 4 Jun 2006 18:35:48 +0000 (UTC) Received: from mail.nor.wtbts.org ([213.234.126.131]) by mail48.nsc.no (8.13.6/8.13.5) with ESMTP id k54IZk3R005810 for ; Sun, 4 Jun 2006 20:35:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.nor.wtbts.org (Postfix) with ESMTP id 6CCBE3FA26 for ; Sun, 4 Jun 2006 20:35:46 +0200 (CEST) Received: from mail.nor.wtbts.org ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31692-07 for ; Sun, 4 Jun 2006 20:35:45 +0200 (CEST) Received: from nc.nor.wtbts.org (unknown [192.168.65.211]) by mail.nor.wtbts.org (Postfix) with ESMTP id 1F7683FA06 for ; Sun, 4 Jun 2006 20:35:45 +0200 (CEST) Subject: [gentoo-embedded] script that changes password for busybox From: Natanael Copa To: gentoo-embedded@lists.gentoo.org Content-Type: text/plain Date: Sun, 04 Jun 2006 20:32:39 +0200 Message-Id: <1149445959.15475.12.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.413 required=5.5 tests=[AWL=0.186, BAYES_00=-2.599] X-Spam-Score: -2.413 X-Spam-Level: X-Archives-Salt: 12fc73de-ca9a-471b-a215-a90f545e1a54 X-Archives-Hash: 4fc64cd0d8dbce8af54e5d4ee0bd89d9 Hi! I'm trying to port a LEAF bering based project to gentoo-embedded. There is a web based UI (using haserl.sourceforge.net) to change password. The code to change the root password looks something like this: newrootpw=$(crypt sN "$root1") awk ' BEGIN{ FS=":"; OFS=":"; } /^root:/{ $2="'"$newrootpw"'"; } {print;} ' /etc/shadow > /tmp/shadow mv /tmp/shadow /etc/shadow The problem I have now is that I cannot find the crypt(1) command, nor a replacement in portage tree. I wonder if anyone has a suggestion how to change passwords from a (web) script? I'm using busybox/uclibc. Thanks! /natanael -- gentoo-embedded@gentoo.org mailing list