w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Edited shadow and passwd to clear root password but new password doesn't work

It is possible that "/etc" is mounted on a ramdisk (or as tmpfs), which allows you to change the password at runtime but the changes are not propagated to the actual passwd and shadow files. The "/etc" is remounted on bootup from a flash device causing the old settings to be used.

After logging in to the system execute mount and check where "/" or "/etc" is mounted, then check the type. A value of tmpfs will prove the statements above. Also check if "/etc" is a link to a folder in "/var". "/var" is usually on tmpfs.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.