atarize 0 Report post Posted December 24, 2008 Haii semuaSaya baru-baru ni telah terubah password root dalam linux secara tidak sengaja dan password yang saya ubah tu saya tidak pasti apa passwordnyer sebab masa tu saya gelabah. Ini ada kali pertama saya mengadap linux. Ada tak sesiapa dalam forum ni yang boleh membantu saya untuk reset kan semula ROOT password linux saya. Sebab linux tu adalah server yang running service SSH dengan FTP. Compay saya kerja ni berhubung dengan bank untuk buat transactionSaya ada cari solution dalam google dan keterangan diaorang untuk resetkan ROOT password linux tu saya kurang jelas sebab ini adalah kali pertama saya bermain dengan linux. Sebelum ni saya hanya bermain dengan windows sahaja.Saya harap kepada yang otai-otai linux dalam forum ni boleh tak you all terangkan cara nak reset root password tu secara step by step dari A to Z dgn sekali command yang saya perlu guna. Saya sangat berharap you dapat menolong saya yang masih mentah dalam dunia linux ni. Quote Share this post Link to post Share on other sites
athlon_crazy 0 Report post Posted December 24, 2008 (edited) QUOTE(atarize @ Dec 24 2008, 04:28 PM) <{POST_SNAPBACK}>Haii semuaSaya baru-baru ni telah terubah password root dalam linux secara tidak sengaja dan password yang saya ubah tu saya tidak pasti apa passwordnyer sebab masa tu saya gelabah. Ini ada kali pertama saya mengadap linux. Ada tak sesiapa dalam forum ni yang boleh membantu saya untuk reset kan semula ROOT password linux saya. Sebab linux tu adalah server yang running service SSH dengan FTP. Compay saya kerja ni berhubung dengan bank untuk buat transactionSaya ada cari solution dalam google dan keterangan diaorang untuk resetkan ROOT password linux tu saya kurang jelas sebab ini adalah kali pertama saya bermain dengan linux. Sebelum ni saya hanya bermain dengan windows sahaja.Saya harap kepada yang otai-otai linux dalam forum ni boleh tak you all terangkan cara nak reset root password tu secara step by step dari A to Z dgn sekali command yang saya perlu guna. Saya sangat berharap you dapat menolong saya yang masih mentah dalam dunia linux ni.if your fedora using grub :1) Append grub- reboot the system- once you see grub, press "e"- append your kernel line with "single" or put "init=bin/bash" at the end of it (tested and work for slackware) but not working for SLES10- If success, you will get bash# then simply $passwd for new password2) Append /etc/shadow- reboot the server with live-cd, mount it & edit /etc/passwd for root (failed for SLES10, Slackware) I think this method only will work for kernel 2.43) Chroot / partition- reboot the server with live-cd -> mount the drive rw -> chroot the mount point with bash -> $passwd (tested and work on SLES10, Opensuse) Edited December 25, 2008 by athlon_crazy Quote Share this post Link to post Share on other sites
atarize 0 Report post Posted December 24, 2008 Tapi aku guna Linux Red Hat 8...mcm mana ea.. Quote Share this post Link to post Share on other sites
antivirus 2 Report post Posted December 24, 2008 ssusah gak soalan ko 2sbab bkanya bnyak pkai linux Quote Share this post Link to post Share on other sites
athlon_crazy 0 Report post Posted December 24, 2008 QUOTE(atarize @ Dec 24 2008, 10:35 PM) <{POST_SNAPBACK}>Tapi aku guna Linux Red Hat 8...mcm mana ea..doesn't matter on which distro & just apply the same approach. Perhaps the different is outcome on the result. BTW, None of the method mentioned above will result your system get corrupted. Where there's the will there's the way. Quote Share this post Link to post Share on other sites
slaughters 1 Report post Posted December 25, 2008 try je la dulu, pakai single. Huhu. Adoi.. Hehe. Quote Share this post Link to post Share on other sites
atarize 0 Report post Posted December 25, 2008 QUOTE(slaughters @ Dec 25 2008, 08:28 AM) <{POST_SNAPBACK}>try je la dulu, pakai single. Huhu. Adoi.. Hehe.I hope you all know..this is the first time i play with linux..because of that i hope u all guide me to reset that password step by step with command i need to use. Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted December 25, 2008 la.. kan kat atas tu dah ade step2? Quote Share this post Link to post Share on other sites
atarize 0 Report post Posted December 25, 2008 QUOTE(gamekiller @ Dec 25 2008, 10:26 PM) <{POST_SNAPBACK}>la.. kan kat atas tu dah ade step2?Mcm mana plaks kalau aku guna Red hat 8 Quote Share this post Link to post Share on other sites
slaughters 1 Report post Posted December 26, 2008 QUOTE (atarize @ Dec 26 2008, 07:59 AM) <{POST_SNAPBACK}>Mcm mana plaks kalau aku guna Red hat 8sepatutnya sama aje.. hermm..kalo takleh, gune nie.. tapi leceh sikit..http://www.computing.net/answers/linux/for...ux-8/27607.html Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted December 26, 2008 ko bleh apply cara tu kat centos, redhat, fedora atau yang anak beranak dari redhat.. Quote Share this post Link to post Share on other sites
cikguyob 0 Report post Posted December 26, 2008 bro...amacam...dah setel ke problem tu?rasa.....yg slaughters bg tu ...leh guna... Quote Share this post Link to post Share on other sites
umarzuki 78 Report post Posted December 27, 2008 (edited) ..atau cuma tambah single kat boot parameter *kat GRUB, tekan e, pilih line ke-2 dan jangan lupa tekan Enter bila siap untuk masuk single user mode (lebih kurang macam safe mode), lepas tu bila dapat masuk, tukar password root dengan commandCODEpasswd root Edited December 27, 2008 by umarzuki Quote Share this post Link to post Share on other sites