How to reset forgotten root password with single user mode- RHEL7 | CentOS 7

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2018
  • This video is show how to login into single user mode and reset root password in RHEL7. A step by step procedure for beginner to "how to login to single user mode and reset password in rhel7"

ความคิดเห็น • 13

  • @bhushanamrajendraprasad9821
    @bhushanamrajendraprasad9821 4 ปีที่แล้ว +4

    Why need to use in init=/bin/bash ?, second question : I saw different method for root password reset : rd.break console=tty in linux16 line and after that control X and change like mount -o remount,rw /sysroot; chown /sysroot;passwd root;touch /.autorelabel ; exit; exit, why this much need to do in RHEL 7 ?

    • @kunjandesai4341
      @kunjandesai4341 2 ปีที่แล้ว

      Same question here, i have seen multiple videos with different options.

  • @sophiaroselin6193
    @sophiaroselin6193 2 ปีที่แล้ว

    Very pleasent explanation

  • @bhuvanachandrakiran2849
    @bhuvanachandrakiran2849 6 ปีที่แล้ว

    What are the common errors we get if we are using nfs server and samba services..?
    Can you prepare a video on this...?

  • @justinphilip3147
    @justinphilip3147 5 ปีที่แล้ว

    Is there any difference between single user mode or maintenance mode and emergency mode ?

    • @tunetolinux4173
      @tunetolinux4173  5 ปีที่แล้ว

      Differences between Emergency and Rescue mode in Linux | RHEL7 |CentOS7 |Part-4th-cam.com/video/i3-CKvz3p64/w-d-xo.html

  • @abdulnaveed2937
    @abdulnaveed2937 4 ปีที่แล้ว +2

    When you change root password the shadow file is modified with incorrect SElinux context.
    Either create a hidden file under root directory #touch /.autorelabel , on the next boot it will create a correct context . Note booting may take time if size of the disk is huge.
    Other way around you can break the booting process, also assign enforcing=0 which makes SElinux temperory permissive so later you can restore the correct context on /etc/shadow and put back SElinux in enforcing mode.

  • @kunjandesai4341
    @kunjandesai4341 2 ปีที่แล้ว

    From 4:00 to 4:35, you have run init command to reboot the system, can't we run "reboot" command itself to reboot the system?
    Hope you answer it.
    Thank you for the video.

    • @tunetolinux4173
      @tunetolinux4173  2 ปีที่แล้ว

      In single user mode not all commands will be available. Hence we need to use init.

    • @kunjandesai4341
      @kunjandesai4341 2 ปีที่แล้ว

      @@tunetolinux4173 ok.Thank you for the update.

  • @balanagireddy2152
    @balanagireddy2152 5 ปีที่แล้ว

    please upload RHEL7 certification videos

    • @tunetolinux4173
      @tunetolinux4173  5 ปีที่แล้ว

      I take offline course for certification. Let me know if you or anyone interested in redhat ansible automation ! (DO407) certification course.