Quote:
Originally Posted by knc1
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
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!!