Backbox Linux
  • Backbox Indonesia
  • Get's Started
    • System Requirements
    • Download Images
    • Installation
    • 5 Things To Do Right After Installing BackBox
  • Basic Linux
    • Mengenal GNU/Linux
    • Kenapa Linux?
    • Linux Desktop vs Linux Server
    • Distro Linux
    • Struktur Direktori GNU/Linux
    • Linux File System
  • Basic Command
    • Introduction
      • Terminal
      • Accessing Linux
      • Network Command
      • Important to remember of Linux
      • Change Password
    • Fundamental
      • File System Navigation Commands
      • TAB Completion and Up Arrow
      • Linux Types File
      • Linux Command Syntax
      • Help Commands
      • Creating Files & Directories
      • Files and Directories Permission
      • Files Ownership
      • Access Control List
      • Soft and Hard Links
      • Find Files and Directories
      • Files Maintenance
      • Wildcards
      • File Display Commands
      • Adding Text to Files
      • Pipeline (|)
      • Standard Output to a File (tee)
      • Filters / Text Processors Commands
      • Compare Files
      • Compress and Uncompress File
      • Truncate File Size
      • Combining and Splitting Files
      • Linux vs Windows Commands
    • System Administration
      • Linux File Editor (vi)
      • sed - Command
      • User Account Management
      • Switch Users and Sudo Access
      • Monitor Users
      • Talking to Users
      • System Utility Commands
      • Process and Jobs
      • Addtional cronjobs
      • Process Management
      • System Monitoring Commands
      • System Logs Monitor
      • System Maintenance Commands
      • Changing System Hostname
      • Finding System Information
      • Finding System Architecture
      • Terminal Commands
      • Terminal Control Keys
      • Recover Root Password
      • SOS Report
  • Bash Scripting
    • Environment Variables
    • Apa itu Shell?
    • Basic Shell Scripting
    • Input/Output
    • Percabangan (If)
    • Perulangan (For)
    • Perulangan (While)
    • Percabangan (Case)
    • Fungsi
    • Alias
    • Shell History
  • Networking
    • Untitled
  • Disk Management
    • Untitled
Powered by GitBook
On this page
  • 1. Reboot
  • 2. Edit Grub
  • 3. Masuk ke Single User Mode
  • 4. Rubah Password dan Reboot
  • 5. Login dengan Password Baru

Was this helpful?

  1. Basic Command
  2. System Administration

Recover Root Password

PreviousTerminal Control KeysNextSOS Report

Last updated 4 years ago

Was this helpful?

Jika Anda mendapati kondisi lupa password root, Anda bisa melakukan recovery terhadap password root.

1. Reboot

Hal yang pertama dilakukan adalah me-restart komputer hingga masuk ke tampilan berikut:

2. Edit Grub

Setelah itu edit grub dengan menekan e hingga masuk ke tampilan seperti berikut:

Pada bagian ro (read-only) rubah menjadi seperti berikut:

rw init=/sysroot/bin/sh

3. Masuk ke Single User Mode

Setelah itu tekan Ctrl+X untuk masuk ke single user mode.

4. Rubah Password dan Reboot

Lalu jalankan perintah berikut secara berurut:

chroot /sysroot # akses sistem
passwd root # merubah password root
touch /.autorelabel #  Update SELinux information
exit # keluar dari chroot
reboot # restart komputer

5. Login dengan Password Baru

Setelah semua proses di atas sudah berhasil dilakukan, seharusnya password root telah berubah. Silahkan login dengan password user root yang baru.