Jump to content
atarize

Linux Root Password Lost

Recommended Posts

Haii semua

Saya 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 transaction

Saya 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.

Share this post


Link to post
Share on other sites
QUOTE(atarize @ Dec 24 2008, 04:28 PM) <{POST_SNAPBACK}>
Haii semua

Saya 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 transaction

Saya 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 password

2) 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.4

3) 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 by athlon_crazy

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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. blush.gif

Share this post


Link to post
Share on other sites
..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 command
CODE
passwd root
Edited by umarzuki

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...