On 15/09/2020 21:33, Carl Spitzer {L Juno} wrote:
I have gone and dome something dumb and lost the paper with the root password. In the old days a Knoppix disk could be used to boot a system and remove the password indicator. Thus clearing the root password and allowing a new one to be set.
Is this still true?
/etc/passwd root:x:0:0:root:/root:/bin/bash [--] - [--] [--] [-----] [--------] [--------] | | | | | | | | | | | | | +-> 7. Login shell | | | | | +----------> 6. Home directory | | | | +--------------------> 5. GECOS | | | +--------------------------> 4. GID | | +-------------------------------> 3. UID | +-----------------------------------> 2. Password +----------------------------------------> 1. Username Password. In older Linux systems, the user’s encrypted password was stored in the /etc/passwd file. On most modern systems, this field is set to x, and the user password is stored in the /etc/shadow file.
See PASSWD(5) for the above. Then SHADOW(5) The shadow file has 9 fields. again separated by colons Like the above, the first is the username. The second is the encrypted password. You can ignore the rest, they are to do with date/change and expiry. Like the old system, you can blank out the password field to remove it. You you can boot with knoppix but make sure you _can_ mount your openSuse root file system. Some versions of knoppix don't like openSuse version of BtrFS. This is why I use the 'rescue cd' instead. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org