commands/process to reset root password
-:- on boot:
select most recent kernel
`e` to edit
goto line with linux16, add `` to end of line
`ctrl+x` to continue boot to rd rescue mode
remount /sysroot as readable (defaults to read only in rd rescue mode):
`mount -o remount,rw /sysroot`
...
Booting to the emergency target state drops to a rescue shell after the 'root' filesystem has
been mounted readonly, but BEFORE other FS checks are carried out. Although you could
do the same with 'rd.break' it would require considerably more effort.
You are a member of a team of admins who are responsible for a critical system. This
system has two different web servers installed: The first (Nginx) is used to serve content,
the other (httpd) is installed only to satisfy dependencies and should never be started as it
causes a conflict. What command could you run to ensure that 'httpd' is never accidentally
started or enabled by another admin?
✓ -:- systemctl mask httpd
You're having a bad day and accidentally delete the 'initramfs' file in /boot that matches
your current kernel. Which command would you run to recover from this?
✓ -:- dracut
You've just made a configuration change to the 'SSHD' service and want to daemon to
reload it's configuration without disconnecting anyone. How could you accomplish this?
✓ -:- systemctl reload sshd.service
persistent hostname change with systemd
3|Page | Grade A+| 2024/2025
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TestTrackers. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £8.34. You're not tied to anything after your purchase.