public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] script that changes password for busybox
@ 2006-06-04 18:32 Natanael Copa
  2006-06-04 23:54 ` Kelly Price
  2006-06-05 14:28 ` Ned Ludd
  0 siblings, 2 replies; 8+ messages in thread
From: Natanael Copa @ 2006-06-04 18:32 UTC (permalink / raw
  To: gentoo-embedded

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



^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [gentoo-embedded] script that changes password for busybox
@ 2006-06-05 13:38 Morgan, Austin D.
  2006-06-05 14:26 ` Natanael Copa
  0 siblings, 1 reply; 8+ messages in thread
From: Morgan, Austin D. @ 2006-06-05 13:38 UTC (permalink / raw
  To: gentoo-embedded

have you looked into mcrypt?

Austin

-----Original Message-----
From: gentoo-embedded+bounces-871-AUSTIN.D.MORGAN=saic.com@gentoo.org on
behalf of Natanael Copa
Sent: Sun 6/4/2006 1:32 PM
To: gentoo-embedded@lists.gentoo.org
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

-- 
gentoo-embedded@gentoo.org mailing list

-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-05 16:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-04 18:32 [gentoo-embedded] script that changes password for busybox Natanael Copa
2006-06-04 23:54 ` Kelly Price
2006-06-05  7:41   ` Natanael Copa
2006-06-05 14:28 ` Ned Ludd
2006-06-05 14:45   ` Natanael Copa
2006-06-05 16:17     ` Ned Ludd
  -- strict thread matches above, loose matches on Subject: below --
2006-06-05 13:38 Morgan, Austin D.
2006-06-05 14:26 ` Natanael Copa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox