From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Tue, 04 May 2010 17:03:34 +0200 Subject: [U-Boot] change root password In-Reply-To: (Nuno Cardoso's message of "Tue, 4 May 2010 11:48:24 +0100") References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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