Cara Reset Password Root CentOS 7

Cara Reset Password Root CentOS 7

Cara Reset Password Root CentOS 7, berguna bila password root centOS lupa atau centOS pernah di hack. Reset password ini tidak menggunakan live cd atau tools lainnya, hanya merubah file boot ketika pertama kali server di jalankan. Cara ini yang paling mudah diterapkan, tapi tidak tutup kemungkinan ada cara lain yang lebih mudah dari cara ini.

Reset Password Root CentOS

untuk melakukan reset password root bisa mengikuti langkah-langkah berikut:

1. Restart/Reset server dan ketika muncul berikut tekan e
SaadWebId - Reset Password CentOS 7

2. Tambahkan rw init=/sysroot/bin/sh sebelum rd.lvm.lv=centos Kemudian tekan Ctrl+x
SaadWebId - Reset Password CentOS 7

3. Akses sistem dengan perintah berikut

chroot /sysroot

4. Reset password dengan perintah berikut

passwd root

Masukan password root baru dan ulangi password root baru

5. Update informasi selinux (skip bila SELinux Non-Aktif)

touch /.autorelabel

6.Keluar dari chroot

exit

7. Restart CentOS dengan perintah berikut

reboot

Selesai,

Selamat Mencoba

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

×

Hello!

Klik salah satu dibawah untuk chat WhatsApp atau kirim email kepada kami ke info@saad.web.id

× WhatsApp Kami
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.