Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 62 discussion

Actual exam question from RedHat's EX200
Question #: 62
Topic #: 1
[All EX200 Questions]

SIMULATION -
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don't know the root password. Change the root password to redhat and login in default Runlevel.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
adolfoale
Highly Voted 3 years, 3 months ago
In RHEL8 - reboot the system - press "e" letter - Add "rd.break" at the end of de line thet begening with "Linux" in grub menu - ctrl + x - # mount -o remount,rw /sysroot - # chroot /sysroot - # passwd - #  touch /.autorelabel - # exit - # logout
upvoted 28 times
urWaifu
1 year, 6 months ago
Know this by heart, because you won't be able to log in on the second server during the exam.
upvoted 3 times
...
...
syed2020
Most Recent 1 year, 9 months ago
In RHEL 9 - Reboot the system - Press 'e' and modify line starting with Linux with rw and add init=/bin/bash - Press F10 - Enter passwd to reset root passwrod - touch /autorelable - exec /sbin/init
upvoted 2 times
...
STFN2019
2 years, 7 months ago
You can also do the following (slight variation to adolfoale's solution): - Reboot - At GRUB2 press e for the primary (default) kernel - Replace ro with rw init=/sysroot/bin/sh - Ctrl+X - chroot /sysroot - passwd root - Enter the password - touch /.autorelabel - Exit - Reboot
upvoted 1 times
...
Ares23
2 years, 11 months ago
the "touch /.autorelabel" is needed if SELinux is enabled/enforced !! if you don't create it password not be update
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...