pozz svima. Instalirao sam ubuntu prije neka 3 mjeseca i nisam ga od tad koristio. Danas sam ga ponovo pokrenuo i traži mi username i password a ja se ne sjećam što sam stavio za username i password. Jel potoji način da otkrijem negdje taj šugavi username i password???
Zaboravljeni password na ubuntu
- poruka: 7
- |
- čitano: 7.869
- |
- moderatori:
pirat, Lazarus Long, XXX-Man, vincimus
- +/- sve poruke
- ravni prikaz
- starije poruke gore
The Howto:
1. Boot up your computer, and when you see the screen that says something like "Press ESC to enter grub," press ESC (the escape key) as soon as you can.
2. Now you should see a menu with many options. Use the arrow keys to navigate to the newest kernel (the one with the highest number) that has "(recovery mode)" written next to it. Now, hit enter (return).
3. Next, your system should boot up normally. BUT, you WILL NOT see the boot splash. Don't worry about that. Lots and lots of text WILL fly past you.
4. Now you are at a root shell.
5. Type
passwd username
replacing username with your username
6. Now a little thing will come up and say "New UNIX Password" or similar. Type the new password that you want. Hit enter. Type it again. Hit enter
7. Then, your password has been changed! Type
shutdown -r now
8. Your system is now rebooting. Once it comes back up, login with your new username and password.
9. There is no step nine.
The Howto:
1. Boot up your computer, and when you see the screen that says something like "Press ESC to enter grub," press ESC (the escape key) as soon as you can.
2. Now you should see a menu with many options. Use the arrow keys to navigate to the newest kernel (the one with the highest number) that has "(recovery mode)" written next to it. Now, hit enter (return).
3. Next, your system should boot up normally. BUT, you WILL NOT see the boot splash. Don't worry about that. Lots and lots of text WILL fly past you.
4. Now you are at a root shell.
5. Type
passwd username
replacing username with your username
6. Now a little thing will come up and say "New UNIX Password" or similar. Type the new password that you want. Hit enter. Type it again. Hit enter
7. Then, your password has been changed! Type
shutdown -r now
8. Your system is now rebooting. Once it comes back up, login with your new username and password.
9. There is no step nine.
Evo još http://www.psychocats.net/ubuntu/resetpassword
Napravis ovo:
Pokrenes Linux sa LiveCD-a
Mountas tvoju particiju gdje se nalazi Ubuntu
1. Nacin:
Promjenis fajl /etc/shadow na toj particiji (NOTE: ne /etc/shaddow na LiveCD-u, nego taj fajl na drugoj particiji)
U /etc/shadow file-u su sifre od svih korisnika. Naravno sifre nisu u citljivom obliku, nego u hashiranom :)
Evo jedne linije iz /etc/shadow faila
root:$1$acjK13Jkd&kHamJdUOxxx#5:13000:0:99999:7::::
Znaci, ono sta je bitno je: u prvom stupcu (stupci su odvojeni dvotockama) je korisnicko ime. U drugom stupcu je sifra (hashirana). Znaci, ti trebas izbrisat drugi stupac. Na taj nacin izbrises korisniku sifru. Znaci, root korisnik od gore bi izgledao ovako:
root::13000:0:99999:7::::
Isto to napravis i za svojeg korisnika... Ovisi koji ti je username.
2. nacin:
Chdir-as se u staru particiju. Evo naredbi.
Zamijeni /dev/sda3 sa particijom gdje ti je Ubuntu
mkdir -p /media/old
mount /dev/sda3 /media/old
mount --bind /dev /media/old/dev
mount -t sysfs none /media/sys
mount -t proc none /media/proc
chroot /media/old
Sada kada si promijenio root, postavis novu sifru svoj korisniku. U ovom primjeru ce korisnik biti svabo.
passwd root
# unesi novu sifru za root
passwd svabo
#unesi novu sifru za svabeta
A ako neznas koji ti je username bio, mozes stvoriti novoga. Znaci, napravi ovo:
useradd -md /home/svabo -p 'password' svabo
Naravno, zamjeni svabo gore sa svojim username-om, i password sa svojom sifrom.
Nakon sta si gotov sa izmjenama, napravi ovo:
exit
umount /media/old/dev
umount /media/old/proc
umount /media/old/sys
umount /media/old
ls -a /media/old # provjeri dali je prazno
rm -R /media/old # NOTE: ovo pokreni SAMO AKO gornja naredba nista ne ispise
reboot # ovo ce restartat system.