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 1FnFJs-0001Pq-3P for garchives@archives.gentoo.org; Mon, 05 Jun 2006 13:40:37 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k55DdZ42011982; Mon, 5 Jun 2006 13:39:35 GMT Received: from cpmx2.mail.saic.com (cpmx2.mail.saic.com [139.121.17.172]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k55DdOpL003947 for ; Mon, 5 Jun 2006 13:39:34 GMT Received: from 0599-its-ieg01.mail.saic.com ([139.121.18.36] [139.121.18.36]) by cpmx2.mail.saic.com for gentoo-embedded@lists.gentoo.org; Mon, 5 Jun 2006 06:39:08 -0700 Received: from cp-its-exig01.mail.saic.com ([139.121.18.36]) by 0599-its-ieg01.mail.saic.com (SMSSMTP 4.0.5.66) with SMTP id M2006060506390825749 for ; Mon, 05 Jun 2006 06:39:08 -0700 Received: by cp-its-exig01.mail.saic.com with Internet Mail Service (5.5.2657.72) id <1941LCT1>; Mon, 5 Jun 2006 06:39:08 -0700 Message-Id: From: "Morgan, Austin D." To: gentoo-embedded@lists.gentoo.org Subject: RE: [gentoo-embedded] script that changes password for busybox Date: Mon, 5 Jun 2006 06:38:50 -0700 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: Internet Mail Service (5.5.2657.72) x-originalarrivaltime: 05 Jun 2006 13:39:06.0002 (UTC) FILETIME=[6A3D4720:01C688A5] content-class: urn:content-classes:message x-mimeole: Produced By Microsoft Exchange V6.5.7226.0 Content-Type: text/plain; charset="ISO-8859-1" Sender: AUSTIN.D.MORGAN@saic.com X-Archives-Salt: 4ea0d237-6c25-4c90-88d2-0ca959ebfd6a X-Archives-Hash: bde83dd087a3771304dd57094d2b6b15 have you looked into mcrypt? Austin -----Original Message----- From: gentoo-embedded+bounces-871-AUSTIN.D.MORGAN=saic.com@gentoo.org on behalf of Natanael Copa Sent: Sun 6/4/2006 1:32 PM To: gentoo-embedded@lists.gentoo.org Subject: [gentoo-embedded] script that changes password for busybox 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 -- gentoo-embedded@gentoo.org mailing list