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