public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] change root password
Date: Tue, 04 May 2010 17:03:34 +0200	[thread overview]
Message-ID: <m2y6fzhfp5.fsf@ohwell.denx.de> (raw)
In-Reply-To: <k2l3cf2debb1005040348h95bbc8c2zd55741e71ef5886e@mail.gmail.com> (Nuno Cardoso's message of "Tue, 4 May 2010 11:48:24 +0100")

Hi Nuno,

> How can I change root password??
>
> I try this:
>
> 1) stop u-boot and add "init=/bin/sh" to the bootargs variable;
> 2) boot
> 3) passwd -d root (inside shell)
>
>
> but this doesn't work!!!! When I reboot the machine, I cannot login with a
> new password.

There really is no need to shout.

What do you mean with "new password"?  The -d has deleted the password,
so you should use no password at all.  On the other hand, the "root"
user not having any password may be forbidden by the rest of the
filesystem, so I would rather try to use "passwd root" and set a known
password and try again.

Cheers
  Detlev

-- 
The success of PCs is in large part due to the fact that, by making all
hardware equivalent, good software enabled bad hardware. (Ugly)
                                    -- Rob Pike
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  parent reply	other threads:[~2010-05-04 15:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-04 10:48 [U-Boot] change root password Nuno Cardoso
2010-05-04 10:55 ` Albert ARIBAUD
2010-05-04 15:03 ` Detlev Zundel [this message]
2010-05-06  7:55   ` Nuno Cardoso
2010-05-06  9:29     ` Wolfgang Denk

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=m2y6fzhfp5.fsf@ohwell.denx.de \
    --to=dzu@denx.de \
    --cc=u-boot@lists.denx.de \
    /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