have you looked into mcrypt? Austin
-----Original Message----- From: [EMAIL PROTECTED] on behalf of Natanael Copa Sent: Sun 6/4/2006 1:32 PM To: [email protected] 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 -- [email protected] mailing list -- [email protected] mailing list
