вт, 17 янв. 2023 г. в 11:01, David <david.g_jo...@ntlworld.com>:
> I have forgotten my password to a Debian PC using an SD stick as it's > main drive. > Looking on the internet it says the passwords are stored in /etc/passwd > and /etc/shadow In /etc/shadow only password's hashes, some data, one-way calculated from password string. > The password string in /etc/shadow looks as if it's encoded, how can I > read this string? You can't. But you can set new password, if you boot from live-usb/live-cd, mount your system to dir and run `chroot dir && passwd $user` -- Stanislav