Gentoo Archives: gentoo-embedded

From: "Morgan
To: gentoo-embedded@l.g.o
Subject: RE: [gentoo-embedded] script that changes password for busybox
Date: Mon, 05 Jun 2006 13:40:37
Message-Id: F23B2C80E3825F47B93655363249D0570C784D@0695-its-exmp01.us.saic.com
1 have you looked into mcrypt?
2
3 Austin
4
5 -----Original Message-----
6 From: gentoo-embedded+bounces-871-AUSTIN.D.MORGAN=saic.com@g.o on
7 behalf of Natanael Copa
8 Sent: Sun 6/4/2006 1:32 PM
9 To: gentoo-embedded@l.g.o
10 Subject: [gentoo-embedded] script that changes password for busybox
11
12 Hi!
13
14 I'm trying to port a LEAF bering based project to gentoo-embedded. There
15 is a web based UI (using haserl.sourceforge.net) to change password. The
16 code to change the root password looks something like this:
17
18 newrootpw=$(crypt sN "$root1")
19 awk '
20 BEGIN{
21 FS=":";
22 OFS=":";
23 }
24 /^root:/{
25 $2="'"$newrootpw"'";
26 }
27 {print;}
28 ' /etc/shadow > /tmp/shadow
29
30 mv /tmp/shadow /etc/shadow
31
32
33 The problem I have now is that I cannot find the crypt(1) command, nor a
34 replacement in portage tree. I wonder if anyone has a suggestion how to
35 change passwords from a (web) script? I'm using busybox/uclibc.
36
37 Thanks!
38
39 /natanael
40
41 --
42 gentoo-embedded@g.o mailing list
43
44 --
45 gentoo-embedded@g.o mailing list

Replies

Subject Author
RE: [gentoo-embedded] script that changes password for busybox Natanael Copa <natanael.copa@×××××.com>