Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

There's more...

By default, restorecon will only restore the type context and leave the others as it found them. This can be overridden with the -F flag. 

We also mentioned resetting the root user's password, which is made oh-so-annoying by SELinux. 

Let's say you've forgotten the root password to your box; the way to go about fixing this is to boot into single-user mode, change the password, and reboot...or at least, that used to be the way.

Now, the steps involved look like this:

  1. Reboot the system.
  2. Edit the GRUB entry for your installation before it times out.
  3. Make sure the linux16 line is rw instead of ro, and change the init to something like /bin/bash.
  4. Continue the boot process.
  5. Make sure your / directory is mounted as rw, and you can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content