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 <gentoo-embedded+bounces-872-garchives=archives.gentoo.org@gentoo.org>)
	id 1Fn2Qz-0005ux-1m
	for garchives@archives.gentoo.org; Sun, 04 Jun 2006 23:55:05 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k54Ns8E6005028;
	Sun, 4 Jun 2006 23:54:08 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187])
	by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k54Ns8ft032427
	for <gentoo-embedded@lists.gentoo.org>; Sun, 4 Jun 2006 23:54:08 GMT
Received: by nf-out-0910.google.com with SMTP id c31so1694674nfb
        for <gentoo-embedded@lists.gentoo.org>; Sun, 04 Jun 2006 16:54:07 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=Oq2mLB7ff5tHW9TXy1XFYoGNnhrD7nO6GlZbhLAC/JCPPRDeQf+wqZqIM0Hb23YCgvJcAeie2FiY3EioXx1g15XW4dMlg/QkYyd3gKtKcodSfcmPVguo1QoF84wvfb52GfA6kVoMgsJSfeqIFLaWdf/b33tYbXbIq7a3GeujPtc=
Received: by 10.48.49.13 with SMTP id w13mr2722000nfw;
        Sun, 04 Jun 2006 16:54:07 -0700 (PDT)
Received: by 10.48.157.15 with HTTP; Sun, 4 Jun 2006 16:54:07 -0700 (PDT)
Message-ID: <7ff566830606041654m4e6b76dah8f16aa1a5b26a410@mail.gmail.com>
Date: Sun, 4 Jun 2006 19:54:07 -0400
From: "Kelly Price" <strredwolf@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] script that changes password for busybox
In-Reply-To: <1149445959.15475.12.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <1149445959.15475.12.camel@localhost>
X-Archives-Salt: e6122d47-a538-46d0-9ec5-5cdc0f481928
X-Archives-Hash: 76680d328f6affcee1a928be92c13a6f

Other than SSHing into the system, what programs need /etc/password?

On 6/4/06, Natanael Copa <natanael.copa@gmail.com> wrote:
> 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
>
>


-- 
Kelly "STrRedWolf" Price
http://strredwolf.furrynet.com
-- 
gentoo-embedded@gentoo.org mailing list