From: Ned Ludd <solar@gentoo.org>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] script that changes password for busybox
Date: Mon, 05 Jun 2006 10:28:52 -0400 [thread overview]
Message-ID: <1149517732.32083.3.camel@onyx> (raw)
In-Reply-To: <1149445959.15475.12.camel@localhost>
On Sun, 2006-06-04 at 20:32 +0200, Natanael Copa wrote:
> 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
Despite all of the security problems with the above I think
a ~20 line custom c program for this would be ideal.
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux
--
gentoo-embedded@gentoo.org mailing list
next prev parent reply other threads:[~2006-06-05 14:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=1149517732.32083.3.camel@onyx \
--to=solar@gentoo.org \
--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