1 |
Hi! |
2 |
|
3 |
I'm trying to port a LEAF bering based project to gentoo-embedded. There |
4 |
is a web based UI (using haserl.sourceforge.net) to change password. The |
5 |
code to change the root password looks something like this: |
6 |
|
7 |
newrootpw=$(crypt sN "$root1") |
8 |
awk ' |
9 |
BEGIN{ |
10 |
FS=":"; |
11 |
OFS=":"; |
12 |
} |
13 |
/^root:/{ |
14 |
$2="'"$newrootpw"'"; |
15 |
} |
16 |
{print;} |
17 |
' /etc/shadow > /tmp/shadow |
18 |
|
19 |
mv /tmp/shadow /etc/shadow |
20 |
|
21 |
|
22 |
The problem I have now is that I cannot find the crypt(1) command, nor a |
23 |
replacement in portage tree. I wonder if anyone has a suggestion how to |
24 |
change passwords from a (web) script? I'm using busybox/uclibc. |
25 |
|
26 |
Thanks! |
27 |
|
28 |
/natanael |
29 |
|
30 |
-- |
31 |
gentoo-embedded@g.o mailing list |