Re: Passwords
You don't need a live-usb/cd.
If your boot system is grub you only have to change command to exec=/bin/bash
Once you are in your system you can change root password and others.
Toni Mas
Missatge de Stanislav Vlasov <stanislav.v.v@gmail.com> del dia dt., 17
de gen. 2023 a les 7:15:
>
> вт, 17 янв. 2023 г. в 11:01, David <david.g_jones@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
>
Reply to:
- References:
- Passwords
- From: David <david.g_jones@ntlworld.com>
- Re: Passwords
- From: Stanislav Vlasov <stanislav.v.v@gmail.com>