View previous topic :: View next topic |
Author |
Message |
marsmar n00b

Joined: 08 Apr 2018 Posts: 16
|
Posted: Fri Nov 09, 2018 11:53 am Post subject: Zapomiałem hasła do root |
|
|
Pół roku temu zainstalowałem gentoo. Ostatnio chciałem użyć uprawnień root, ale okazało się że nie pamiętam hasła. Jak zresetować hasło root w gentoo ? |
|
Back to top |
|
 |
sebas86 Guru


Joined: 01 May 2005 Posts: 570 Location: Szczecinek / Szczecin
|
Posted: Sat Nov 10, 2018 11:12 pm Post subject: |
|
|
LiveCD/LiveUSB + chroot + passwd, zupełnie tak samo jak przy instalacji.
Względnie uruchom system w trybie pojedynczego użytkownika (single user mode). _________________ Nieważne jaka dystrybucja, ważne, że Linux! |
|
Back to top |
|
 |
marsmar n00b

Joined: 08 Apr 2018 Posts: 16
|
Posted: Tue Nov 13, 2018 10:54 am Post subject: |
|
|
sebas86 wrote: | LiveCD/LiveUSB + chroot + passwd, zupełnie tak samo jak przy instalacji.
Względnie uruchom system w trybie pojedynczego użytkownika (single user mode). |
Jak uruchomić w single user mode. Odpalam grub, wciska e. Przechodze do lini linux i dodaję wyraz "singel". Później f10 ale system startuje normalnie |
|
Back to top |
|
 |
sebas86 Guru


Joined: 01 May 2005 Posts: 570 Location: Szczecinek / Szczecin
|
Posted: Thu Nov 15, 2018 11:30 pm Post subject: |
|
|
Najwidoczniej dopisujesz argument nie do tej linijki co trzeba. Możliwe także, że sam single to za mało i system nadal będzie pytał o hasło w tym przypadku powinno pomóc zmiana domyślnego programu inicjalizującego system np np. shell:
Code: | linux [...] single init=/bin/sh |
_________________ Nieważne jaka dystrybucja, ważne, że Linux! |
|
Back to top |
|
 |
gexcite Tux's lil' helper

Joined: 24 Sep 2005 Posts: 116
|
Posted: Fri Nov 16, 2018 6:01 pm Post subject: |
|
|
Wydaje mi się, że tak powinno być:
Przynajmniej kiedyś tak odpalałem i działało. Chyba, że się coś zmieniło od tej pory. |
|
Back to top |
|
 |
|