Reset Forgotten Root Password in RHEL 9 | Reset Root Password in RHEL 9 (Linux) | Latest Method
Вставка
- Опубліковано 8 вер 2024
- Reset Forgotten Root Password in RHEL 9 | Reset Root Password in RHEL 9 (Linux) | Latest Method
*********
🎬 Video Chapters: 👇
00:00 Channel Intro
*********
✅ Click Here 👉 www.youtube.co...
*********
📚 Available Courses Playlists For Members:
RHCSA (Hindi) 👉 • RedHat Certified Linux...
RHCSA (English) 👉 • RedHat Certified Linux...
RHCE (Hindi) 👉 • Playlist
RHCE (English) 👉 • Playlist
Ansible (English) 👉 • RHCE V8 (EX294) Ansibl...
Shell Scripting (English)👉 • Playlist
AWS (English) 👉 • Playlist
*********
🤝 Join Membership 👉 / @nehraclasses
*********
🙏🙏 Thanks for watching the video. If it helped you then, please do like & share it with others as well. Feel free to post your queries & suggestions in the comment box, we will be happy to answer your queries.
👍👍 If you like our hard work then please do subscribe to our channel & turn on the bell notification to get the latest notifications of our video.
*****
My DSLR Camera 👉 amzn.to/36954Ml
My Microphone 👉 amzn.to/3mZavTS
My iPhone 👉 amzn.to/3lWa63j
My Gaming Router 👉 amzn.to/3j3dQON
My FireStick 👉 amzn.to/345150F
My Head-Phone 👉 amzn.to/3ie4rDB
******
My Dream Laptop 👉 amzn.to/37j11fp
My Dream TV 👉 amzn.to/2KR32b4
My Dream IPhone 👉 amzn.to/36j8oE1
******
📲 Contact Us:
Telegram 👉 t.me/NehraClasses
Email 👉 nehraclasses@gmail.com
******
✅ Follow Us On Social Media Platforms:
Twitter Handle 👇
/ nehraclasses
Facebook Page 👇
/ nehraclasses
Instagram Handle 👇
/ nehraclasses
Website 👇
nehraclasseson...
=======
©COPYRIGHT. ALL RIGHTS RESERVED.
#NehraClasses #NehraClassesLive #LinuxTraining
sir you are amazing, respect from Silicon Valley CA.
🙏
Thank you sir
Mujhe laga tha ye honga hi nhi mujhse
Lkn ho gaya hai ye video se
Thank you so much sir 😘😘
Hi sir,
Your classes are amazing, and I am learning great by them. Could you guide me if I should choose Red Hat Certified System Administrator v9 or Red Hat Certified System Administrator v8 Exam?
Does it make any difference.
Go for rhel 9
You are doing amazing Job Sir
Just now i have tested both ways, removing "rhgb quiet" from end of the 4th line is optional. Thanks.
Thank you so much sir 🙏🙏
Hello Nehra Classes,
Question: Is it necessary to remove the 'rhgb quiet' ? If we add rd.break at the end of the cmdline, and proceed with Ctrl + x, it still works right?
And on the RHCSA v9 exam, if we 'init 6' the system, do we get the grub menu by default? I tried on the test machine, and F8 did not work sadly :( (not sure if I did it wrong)
Looking forward for your advice and answers
### **1. Removing `rhgb quiet` and Using `rd.break`**
- **`rhgb` and `quiet`:**
- `rhgb` stands for Red Hat Graphical Boot, which provides a graphical boot screen instead of text messages.
- `quiet` suppresses most of the boot messages and reduces console output.
- **Using `rd.break`:**
- Adding `rd.break` to the kernel command line tells the system to break into an emergency shell during the boot process. This is useful for troubleshooting and making changes before the system fully boots.
- **Effectiveness:**
- **With `rhgb quiet`:** If you add `rd.break` at the end of the kernel command line and proceed with booting, you should still be able to enter the emergency shell. The `rhgb quiet` options are mainly for controlling the boot appearance and verbosity and should not affect the functionality of `rd.break`.
- **Without `rhgb quiet`:** Removing these options will give you more verbose boot messages, which can be helpful for troubleshooting. It does not impact the use of `rd.break`.
### **2. GRUB Menu Access and `init 6`**
- **GRUB Menu:**
- The GRUB menu is generally accessed by pressing a key during the boot process, often `Esc`, `Shift`, or `F8`, depending on the system configuration and GRUB version.
- **Using `init 6`:**
- The `init 6` command is used to reboot the system. It typically performs a clean shutdown and restart, but it does not directly affect the visibility of the GRUB menu.
- On some systems, the GRUB menu might not appear if the system boots too quickly or if GRUB is configured to hide the menu by default.
- **Exam Context:**
- During the RHCSA v9 exam or similar environments, if `F8` did not work, try the following:
- **Check Documentation:** Ensure you are using the correct key for your specific environment or exam setup.
- **Try Other Keys:** Use `Esc`, `Shift`, or `Ctrl+Esc` to access the GRUB menu.
- **Timing:** Ensure you press the key at the right moment during the boot process, right after the system starts but before the OS begins to load.
### **Summary:**
- **Removing `rhgb quiet`** is not strictly necessary to use `rd.break`, but doing so provides more detailed boot messages, which might be helpful for troubleshooting.
- **`init 6`** reboots the system but does not directly affect GRUB menu visibility. If you are having trouble accessing the GRUB menu, try different keys and be mindful of the timing during the boot process.
If you need to perform specific tasks on the RHCSA exam, such as accessing GRUB or using `rd.break`, make sure to familiarize yourself with the key sequences and commands in advance.
good morning ...sir i want to buy extended level, is it valid for one month only?...after one month i will have to buy it again? please consider my question sir
UA-cam membership validity is by default for 30 days, at an extended level you can unlock all the premium courses available on our channel like RHCSA, RHCE, EX 188, EX358 & Servers Training.
Thank you sir
great sir
Hello there,
How do you reset ROOT password when GRUB_TIMEOUT=0? I mean, boot-menu does not stay long enough to press “e” or make a selection?
Hello vikas sir , I tried in same version but password authentication didn't work.. maybe relabeling not succeed
You might be missing something
Hi sir,
I have one question
Suppose I am forgot root and grab password how to recover
you can boot the machine from live iso in that case.
Ok thanks
Sir i have joined the Nehra classes 1 week back how do i get access for study material.
Please raise a request for the study material using the links in the membership tab
@@NehraClasses Raised the request. Thank you in advance
Access granted
Haprxy need to read one sql server and need to read and write on other server of sql how to configure please make a video or blog
I forgot administrator password & not able to change administrator password in RHEL 9 . Please help.
follow the instructions shown in this video.
thanks bro
do u upload pdf copy of exam questions, How I can get it.
Its available to members on gdrive.
Top
Sir Can I print a study material?
Hi sir, please share link guide to study
Please join standard level membership and provide us membership screenshot in telegram group
Can you do one in English?
Please watch other playlists
How can I join the live session?
Live sessions are free for all
@@NehraClasses thank you sir ji and let me know timing and day?
Mon, wed and fri 09:30 pm IST
What if ask for the root password, what we should do ?
it will not ask for the existing root password if you will follow our method.
Sirji nice session for rhel 9 resetting root password.
init=/bin/bash is a universal method for all flavour distro(only password reset method for debian ubuntu type/based n Suse linux, no rd. break n not understood by dis distro kernel. In old days sysvinit,upstart init days there were also entry of sulogin in /etc/inittab which ask invoke root password in single n emergency mode in this debian ubuntu type n suse linux n entry of sulogin wasn't there in /etc/inittab by default n asking root password not happened in rhel, fedora,centos single user mode. Check man bootparams, man boot)
root file system(installed linux partition)is mounted as / by kernel n start /bin/bash as init instead of /sbin/init(normal init) n no /sysroot (where root partition was mounted temporary as /sysroot in rd.break methods) found n so chroot not required.
mount -o remount, rw /
Up to here sir ji u have tried n about to reset root password n then stopped.
Next info u try it.
chroot n passwd may not found in shell PATH. If passwd command is found in PATH then it is ok
we need to change /etc/shadow or /etc/passwd by passwd/vi / sed commands by giving d full path like /usr/bin/passwd, /usr/bin/vi, /usr/bin/sed
Then
touch /.autorelabel
mount -o remount, ro /
exec /sbin/init (first time starting init from shell like kernel starts d init after mounting / in normal boot).
I don't have rhel9 iso but init=/bin/bash method should work n must have to work (about to work sirji when u tried in this video)
For kind info
Yes it works but SELinux needs to be restored.
After changing d password
touch /.autorelabel
mount -o remount,ro /
Then reboot d machine (instead of exec /sbin/init)