public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Natanael Copa <natanael.copa@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] script that changes password for busybox
Date: Sun, 04 Jun 2006 20:32:39 +0200	[thread overview]
Message-ID: <1149445959.15475.12.camel@localhost> (raw)

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



             reply	other threads:[~2006-06-04 18:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-04 18:32 Natanael Copa [this message]
2006-06-04 23:54 ` [gentoo-embedded] script that changes password for busybox 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1149445959.15475.12.camel@localhost \
    --to=natanael.copa@gmail.com \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox