View Single Post
Old 07-30-2013, 10:47 AM   #370
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 708
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Quote:
Originally Posted by knc1 View Post
I would suggest a modification to your #1 -
* Don't move the entire file, just move the root line
* Do move the root line of both /etc/shadow and /etc/passwd
(I.E: Make a consistent change to both files from diag to main.)

**THEN**
If you don't like the password you end up with, use the passwd utility to change it.
Quote:
Originally Posted by ixtab View Post
Copying the /etc/(passwd|shadow) from diags to main is not a good idea. I don't know if they're used, but there are a couple of accounts defined in there, and they're very likely to be different between diags and main.

Why don't you simply take the easy route? Install usbnetwork, launch it, connect via USB (any password will do), then execute passwd and set a new one. Who cares whether the original root password was disabled, or what it was?

I sure will try first the passwd method!
I'm just thinking at the worst case scenario...
I'll let you all know something later! In the meanwhile, thanks to all!!
silver18 is offline   Reply With Quote