• Thông Tin Cần Biết
  • Hướng Dẫn
  • Câu Hỏi Thường Gặp
  • Thông Tin Cần Biết
  • Hướng Dẫn
  • Câu Hỏi Thường Gặp
Home/Hướng Dẫn/Linux/Reset password root trên CentOS 7

Reset password root trên CentOS 7

158 lượt xem 1

Reset password root trên CentOS 7
Cách reset password CentOS 7 khác với CentOS 6, các bước reset như sau

1. Khởi động lại máy chủ đến màn hình boot grub menu

[Linux] Hướng dẫn reset password root trên CentOS 7

2. Chọn e để thay đổi chế độ boot

[Linux] Hướng dẫn reset password root trên CentOS 7

3. Tìm đế dòng boot title có chữ ro và thay ro thành rw init=/sysroot/bin/sh

[Linux] Hướng dẫn reset password root trên CentOS 7

4. Ấn Control+x để vào chế độ single mode.

5. Truy cập hệ thống bằng lệnh.

chroot /sysroot

6. Reset password root

passwd root

7. Update thông tin selinux

touch /.autorelabel

8. Thoát chroot

exit

9. Reboot lại hệ thống

reboot

Trên đây là Hướng dẫn reset password root trên CentOS 7.
Chúc các bạn thực hiện thành công!

Tags:reset password centos 7reset root password centosroot password centos7reset password centos

Bài viết này hữu ích không?

1 Yes  No
Bài viết liên quan
  • Ubuntu – Hướng dẫn mở rộng (Resize) dung lượng disk default
  • Ubuntu 22.04 – Add User
  • Ubuntu 22.04 – Enable root user
  • CentOS 8 – Fix lỗi Failed to download metadata for repo ‘AppStream’
  • CentOS 7 – Fix lỗi Not found trying other mirror
  • Tổng hợp lệnh RPM trên Linux

Không tìm thấy câu trả lời của bạn? Liên hệ

Linux
  • Reset password root trên CentOS 7
  • How to Install Debian 11
  • Tìm và xóa file Zero-Byte trong Linux
  • Cài đặt ConfigServer Security & Firewall (CSF) trên CentOS
  • Ubuntu 20.04 – Thiết lập địa chỉ IP tĩnh (Static IP Address)
  • Xử lý lỗi full Inode trên server DirectAdmin
  • Tổng hợp lệnh RPM trên Linux
  • CentOS 7 – Fix lỗi Not found trying other mirror
  • CentOS 8 – Fix lỗi Failed to download metadata for repo ‘AppStream’
  • Ubuntu 22.04 – Enable root user
  • Ubuntu 22.04 – Add User
  • Ubuntu – Hướng dẫn mở rộng (Resize) dung lượng disk default
All Categories
  • WordPress Website
  • Quản trị Website
  • Quản lý tài khoản
  • Tên miền
  • Chứng chỉ số SSL
  • Email Hosting Server
  • Web Hosting
  • VPS / Server
  • Plesk
  • DirectAdmin
  • Networking
  • Linux
  • Windows
© BizMaC | Rainbow E-Commerce