[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Passwords





On Tue, Jan 17, 2023 at 1:01 AM David <david.g_jones@ntlworld.com> wrote:
Morning All,

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

The password string in /etc/shadow looks as if it's encoded, how can I
read this string?

David.


Do you have a root account? If so then log in as root and run `passwd <UserName> <NewPassword>`

If you do not have root then you can login using single user mode and set a root password. 
https://devconnected.com/single-user-mode-secure-boot-on-ubuntu-debian/

Tim

--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply to: