Latest / CyberSecurity Summary / Red Hat Enterprise Linux 8 Administration: Master Linux administration skills and prepare for the RHCSA certification exam
Transcript
- 0:00Speaker 1: Welcome to the deep dive. This is where we take
- 0:02Speaker 1: those really comprehensive system administration guides, the ones that are
- 0:07Speaker 1: you know, packed with practical knowledge, and we boil them down.
- 0:10Speaker 1: We focus on the foundations you really have to.
- 0:12Speaker 2: Get right exactly, and today we're tackling red hat enterprise
- 0:16Speaker 2: Linux aid administration.
- 0:18Speaker 1: Our source material is, well, it's a pretty deep guide
- 0:21Speaker 1: to mastering RHL.
- 0:23Speaker 2: Eight right, and our goal here is specific pull out
- 0:26Speaker 2: that essential day one knowledge, the stuff that really defines
- 0:30Speaker 2: professional it work using Linux.
- 0:32Speaker 1: We're going beyond just listing commands. We want the best
- 0:35Speaker 1: practices for the command line, managing users securely, understanding modern
- 0:40Speaker 1: system services.
- 0:41Speaker 2: Yeah, we're aiming for clarity, trying to cut through the
- 0:43Speaker 2: jargon and give you a solid base. We'll cover navigating
- 0:46Speaker 2: the system, how permissions actually work, and you know what
- 0:49Speaker 2: RHL eight does under the hood, because.
- 0:51Speaker 1: Getting these fundamentals right from the start that's key, isn't.
- 0:54Speaker 2: It absolutely critical. It's the difference between a system that
- 0:58Speaker 2: runs smoothly for years and one that just becomes a
- 1:01Speaker 2: tangled mess later on. Doesn't matter if it's physical, VM cloud,
- 1:06Speaker 2: these basics save you headaches down the line.
- 1:08Speaker 1: Okay, let's get into it, starting where every admin spends
- 1:12Speaker 1: their time, the command line.
- 1:14Speaker 2: The shell right, Linux is multi user from the ground up,
- 1:18Speaker 2: and that means understanding the difference between a regular user and.
- 1:23Speaker 1: Well, the boss for Route account.
- 1:25Speaker 2: Precisely, your regular user account operates with limited privileges. But
- 1:28Speaker 2: Root internally known as user ID zero, that's the super user.
- 1:32Speaker 2: It has total control, absolute power over the system.
- 1:35Speaker 1: And there's a really simple visual cue for this, right.
- 1:37Speaker 1: Don't think you have to burn into your brain.
- 1:38Speaker 2: The command prompt, that's it. If you're a regular user,
- 1:41Speaker 2: you see a dollar sign a lot, but if you're
- 1:43Speaker 2: logged in as Root, that prompt changes immediately to the
- 1:46Speaker 2: hash symbol hashtag.
- 1:47Speaker 1: That's the warning sign.
- 1:48Speaker 2: That's the big red flashing light. Seeing that hashtag means
- 1:52Speaker 2: one typo could wreck your system. So extreme caution is mandatory.
- 1:56Speaker 2: No ifs ands or butts.
- 1:58Speaker 1: So if I'm logged in as say myself, a regular user,
- 2:02Speaker 1: and I need to do something administrative or maybe just
- 2:04Speaker 1: switch to another user account temporarily, you.
- 2:06Speaker 2: Use the sum command substitute user. Okay, And here's the kicker.
- 2:11Speaker 2: If you are already Route, you can use SUN to
- 2:14Speaker 2: become any other user on the system just by typing
- 2:17Speaker 2: so username you don't need their password.
- 2:20Speaker 1: Wow. Okay, that really shows the power of root.
- 2:23Speaker 2: It absolutely does, and using SO with the DASH is
- 2:25Speaker 2: important too. It properly initializes the new user's environment, like
- 2:30Speaker 2: environment variables and paths.
- 2:32Speaker 1: Right. Speaking of the environment, let's talk about the Linux philosophy.
- 2:35Speaker 1: Everything is a file, even things like disks or running processes.
- 2:39Speaker 2: Yeah, that's a core concept. Your hard drives show up
- 2:42Speaker 2: under DEV, running process info is under PROC. It's all
- 2:45Speaker 2: represented in the file system.
- 2:46Speaker 1: And before we run commands, effectively, we need to understand
- 2:49Speaker 1: environment variables. You mention them, what are they and like,
- 2:52Speaker 1: how do we see them?
- 2:53Speaker 2: They're basically name settings that control how your shell and
- 2:57Speaker 2: other programs behave. Think of them as personalization. The easiest
- 3:01Speaker 2: way to see one is with the echo command, So
- 3:03Speaker 2: echoshell will tell you which shell program you're actually using
- 3:07Speaker 2: maybe Bash maybe.
- 3:08Speaker 1: And echo path. That one's important.
- 3:11Speaker 2: Crucial. Path is a list of directories. When you type
- 3:14Speaker 2: a command, the shell looks through those directories in order
- 3:17Speaker 2: to find the program. If it's not in your path,
- 3:20Speaker 2: you have to touch the full location like has been
- 3:23Speaker 2: some command.
- 3:23Speaker 1: Got it? So the environment dictates what's easy to run.
- 3:27Speaker 1: Now navigating this file system which starts at the root directory.
- 3:31Speaker 1: Any shortcuts for speed?
- 3:33Speaker 2: Definitely, you absolutely need to know tilled for your home directory,
- 3:38Speaker 2: right for the current directory you're in, and DOTT for
- 3:41Speaker 2: the directory one level up the parent directory.
- 3:43Speaker 1: Standard stuff but essential.
- 3:44Speaker 2: But the real game changer. Bash autocomplete using the tab key.
- 3:49Speaker 1: Ah. Yes, this saves so much time.
- 3:51Speaker 2: It's incredible. Hit tab once and if the command or
- 3:54Speaker 2: file name you started typing is unique, Bash just fills
- 3:57Speaker 2: it in for you instantly, and if it's not unique,
- 4:00Speaker 2: hit tab twice. Bash will then list all the postile
- 4:03Speaker 2: completions right there for you. Works for commands, file names,
- 4:07Speaker 2: directory paths. Everything cuts down typos dramatically.
- 4:11Speaker 1: Don't forget history either, Oh absolutely.
- 4:13Speaker 2: The history command shows you your previous commands. You can
- 4:15Speaker 2: easily rerun complex ones about typing them all over again.
- 4:18Speaker 2: Super useful.
- 4:19Speaker 1: Okay, so we can find commands run them. Now. What
- 4:22Speaker 1: about managing the output? That's where IO redirection comes in
- 4:25Speaker 1: the standard streams.
- 4:26Speaker 2: Yep, there are three main ones. STDOU standard output that's
- 4:30Speaker 2: the normal results of a command. Okay, stir R standal
- 4:33Speaker 2: error that's where error messages go. They're kept separate right,
- 4:36Speaker 2: that's useful, and STDI and standard input, which is where
- 4:40Speaker 2: a command can receive data from.
- 4:42Speaker 1: And we use special symbols to redirect these exactly.
- 4:45Speaker 2: The greater than symbol S sends stdou to a file
- 4:50Speaker 2: overwriting anything already there.
- 4:51Speaker 1: Careful with that one very careful.
- 4:53Speaker 2: Double greater then ed does the same, but appends the
- 4:56Speaker 2: output to the end of the file, which is often
- 4:59Speaker 2: safer and error.
- 5:00Speaker 1: How do we handle STDR.
- 5:01Speaker 2: You use two. The two club refers specifically to stur
- 5:05Speaker 2: so command two air loog dot txt sends only the
- 5:08Speaker 2: error messages to that file, leaving the normal output stdout
- 5:13Speaker 2: on your screen or letting you redirect it elsewhere.
- 5:16Speaker 1: That separation is really powerful for scripting, which brings us
- 5:19Speaker 1: to the pipe operator, the vertical bar ah the pipe.
- 5:23Speaker 2: This is where Linux command line power really shines. It
- 5:27Speaker 2: takes the stdot of the command on its left the
- 5:30Speaker 2: normal output right and directly connects it or pipes it
- 5:33Speaker 2: right into the stdo end of the command on.
- 5:35Speaker 1: Its right, so you can chain commands together.
- 5:37Speaker 2: Precisely without needing temporary files cluttering things up. You gave
- 5:41Speaker 2: a great example earlier finding specific files.
- 5:44Speaker 1: Like counting certain files under source.
- 5:45Speaker 2: Yeah, you can do. Find a source to list everything.
- 5:48Speaker 2: Pipe that output into rep keyword to filter for lines
- 5:51Speaker 2: containing your keyword. Then pipe that output into WCSHL to
- 5:54Speaker 2: count the lines.
- 5:55Speaker 1: Find repwcdshel one line no tem files super efficient.
- 6:00Speaker 2: That's the beauty of it. Small tools chain together incredible.
- 6:03Speaker 1: Okay, let's move into section two, Security and access management.
- 6:07Speaker 1: We've talked about the immense power of root that naturally
- 6:10Speaker 1: leads to needing ways to manage permissions carefully.
- 6:13Speaker 2: It forces you into that least privileged mindset. You just
- 6:16Speaker 2: can't run everything as root. The risk is way too.
- 6:18Speaker 1: High, which brings us to the standard POSX permissions, user group,
- 6:23Speaker 1: other UGO.
- 6:24Speaker 2: Right, every file and directory has an owner, user, and
- 6:28Speaker 2: associated group, and then permissions for others everyone else.
- 6:31Speaker 1: We usually see these as RWX read, write, execute, but
- 6:35Speaker 1: the system often uses numbers octal notation. Quick reminder on.
- 6:39Speaker 2: That ezpz read is four, write is to execute is
- 6:41Speaker 2: one at them up yep sox is four plus two
- 6:44Speaker 2: plus one annual seven artipsx is four plus zero plus
- 6:47Speaker 2: one E plus five r is just four. So a
- 6:49Speaker 2: common permission like rwxrxrx is.
- 6:52Speaker 1: Seven for the user r wx five for the group
- 6:55Speaker 1: RFX and five for others RX. So seven fifty five
- 6:59Speaker 1: you got it. Seven. Now there are some special permissions too.
- 7:02Speaker 1: What's one administrators really need to understand, especially regarding shared directories.
- 7:06Speaker 2: Ah, you're probably thinking of the sticky bit.
- 7:08Speaker 1: That's the one represented by a t right.
- 7:11Speaker 2: You often see it on world writable directories like TAMP.
- 7:14Speaker 2: When the sticky bit is set on a directory, it
- 7:17Speaker 2: changes the rules slightly. How So, even if everyone has
- 7:20Speaker 2: right permission in the directory, a user can only delete
- 7:23Speaker 2: or rename files that they themselves own inside that directory,
- 7:26Speaker 2: or the owner of the directory can of course.
- 7:28Speaker 1: So it stops users from messing with each other's files
- 7:31Speaker 1: in a shared space like TIAM.
- 7:32Speaker 2: Exactly prevents accidental or malicious deletion of files you didn't create.
- 7:37Speaker 1: Okay, So to maintain that least privilege idea, we don't
- 7:41Speaker 1: want users logging in as root all the time or
- 7:45Speaker 1: even using sue constantly.
- 7:46Speaker 2: That's where pseudo comes in precisely. Pseudo superrouser do it
- 7:50Speaker 2: lets a permitted user run a specific command as another user,
- 7:54Speaker 2: usually as root.
- 7:55Speaker 1: And the key difference from just using.
- 7:56Speaker 2: Sue auditability pseudologs who ran what can when and as
- 8:00Speaker 2: whom it's all about accountability. Using SUE to become root
- 8:04Speaker 2: gives you a rootshell, and then it's harder to track
- 8:06Speaker 2: exactly which commands we're run with elevated privileges.
- 8:09Speaker 1: And by default, who gets to use pseudo?
- 8:11Speaker 2: By default in RHL, root can use it naturally and
- 8:15Speaker 2: any members of the administrative wheel group. So managing membership
- 8:18Speaker 2: of the wheel group is a key security control point.
- 8:21Speaker 1: It makes sense now managing the users themselves over time
- 8:26Speaker 1: life cycle management. How do we enforce things like password changes?
- 8:30Speaker 2: RHL provides the change command for that change age. Okay,
- 8:34Speaker 2: you use it to set password aging policies for users.
- 8:37Speaker 2: Key options are dash M for the maximum number of
- 8:41Speaker 2: days a pathword.
- 8:42Speaker 1: Is valid before they must change it right.
- 8:44Speaker 2: H i S sets how many days the account can
- 8:47Speaker 2: be inactive after password expiry before it gets locked automatically.
- 8:50Speaker 1: Enforcing these really helps maintain security hygiene definitely.
- 8:53Speaker 2: It protects against stale accounts and forces regular password updates.
- 8:57Speaker 1: And what if you need to lock an account immediately,
- 8:59Speaker 1: say someone leaves the company?
- 9:01Speaker 2: Quickest way is user mod dash L username.
- 9:03Speaker 1: The ash L is for a lock and what does
- 9:06Speaker 1: that actually do under the hood? Is there something visible yep.
- 9:09Speaker 2: If you were to look in the accept shadow file
- 9:12Speaker 2: where the encrypted password hashes are stored, locking the account
- 9:16Speaker 2: inserts an exclamation mark ah right at the beginning of
- 9:19Speaker 2: the password hash.
- 9:20Speaker 1: Field AH, so it invalidates.
- 9:22Speaker 2: The hash exactly, makes it impossible to authenticate with that
- 9:25Speaker 2: password until an admin unlocks it using user mod dushu.
- 9:29Speaker 2: It's instant and effective.
- 9:31Speaker 1: Okay, fascinating. Let's move into section three the more modern
- 9:35Speaker 1: system operations in RHL eight. Let's talk systemed. It replaced
- 9:38Speaker 1: the older in its systems. Why was that necessary? What
- 9:41Speaker 1: problem did it solve?
- 9:42Speaker 2: The big one was boot time. Older systems like cisvin
- 9:45Speaker 2: it booted sequentially. Service A had to fully start and
- 9:49Speaker 2: report success before service B could even begin loading, creating bottlenecks,
- 9:53Speaker 2: huge bottlenecks, especially on systems with many services. It led
- 9:57Speaker 2: to really long boot times. System, which runs as PID one,
- 10:00Speaker 2: the very first process started by the kernel, tackles this
- 10:03Speaker 2: using parallel processing.
- 10:05Speaker 1: It manages things through units.
- 10:06Speaker 2: That's the core concept. Everything system manages is a unit.
- 10:10Speaker 2: There are service units for demons, socket units for network sockets,
- 10:14Speaker 2: target units, which are like groups of other units similar
- 10:16Speaker 2: to run levels. Timer units.
- 10:18Speaker 1: Timer units what are those? For?
- 10:20Speaker 2: System? Timers are essentially the modern integrated way to run
- 10:24Speaker 2: jobs periodically. They replace the traditional Kron demon for many tasks.
- 10:29Speaker 1: Uh, like cron jobs, but managed by systems. Yeah. Any
- 10:33Speaker 1: common examples.
- 10:34Speaker 2: A good one is f strem dot timer on systems
- 10:37Speaker 2: with SSDs. This timer usually runs weekly to trigger the
- 10:40Speaker 2: strum command, which tells the SSD controller which blocks are
- 10:43Speaker 2: no longer in use, helping maintain performance. It's managed entirely.
- 10:47Speaker 1: By systems, so more robust than Kron.
- 10:50Speaker 2: Perhaps generally Yes, better logging, integration, dependency management, that kind
- 10:54Speaker 2: of thing.
- 10:55Speaker 1: Okay, let's pivot slightly. Time synchronization. Why is having accurate
- 10:59Speaker 1: time so critical on network systems?
- 11:02Speaker 2: Oh, it's non negotiable. Think about logs. If your server's
- 11:05Speaker 2: clocks are out of sync, correlating events across machines to
- 11:08Speaker 2: troubleshoot an issue becomes a nightmare maybe impossible, And many
- 11:12Speaker 2: security protocols like cerberos rely heavily on tightly synchronized time.
- 11:18Speaker 2: If clocks drift too far apart, authentication just fails. Financial
- 11:22Speaker 2: transactions databases, accurate time is fundamental.
- 11:26Speaker 1: And our HL eight uses crony for this.
- 11:29Speaker 2: Yes, Crony is the default NTP Network Time Protocol client
- 11:33Speaker 2: and server.
- 11:34Speaker 1: Now, there's something interesting about how CRONY handles time adjustments,
- 11:37Speaker 1: isn't there. It doesn't just jump the clock.
- 11:39Speaker 2: That's a key insight. Yeah, Crony is designed to be
- 11:42Speaker 2: very application friendly. After it gets an initial sink, if
- 11:45Speaker 2: it detects the system clock is drifting, it generally avoids
- 11:48Speaker 2: making a sudden, large jump or stepping the clock.
- 11:51Speaker 1: What does it do instead?
- 11:52Speaker 2: It slightly adjusts the rate at which the system clock runs,
- 11:55Speaker 2: making it run a tiny bit faster or slower until
- 11:59Speaker 2: it smoothly convert with the reference time source.
- 12:01Speaker 1: So it maintains a continuous flow of time from the
- 12:03Speaker 1: OS and application.
- 12:04Speaker 2: Perspective, exactly, it prevents those sudden time shifts that could
- 12:07Speaker 2: confuse applications that rely on steady time progression, like databases
- 12:12Speaker 2: or real time monitoring systems. It prioritizes continuity.
- 12:15Speaker 1: Very clever. Okay, last bit in this section basic resource checks.
- 12:20Speaker 1: What are the go to commands?
- 12:22Speaker 2: For a quick look? Free gives you memory and swap
- 12:24Speaker 2: usage and df disc free shows you disk space usage
- 12:29Speaker 2: per file system usually DFH for human readable sizes.
- 12:33Speaker 1: Simple but essential. Now what happens when the system runs
- 12:36Speaker 1: at a RAM.
- 12:37Speaker 2: There's something called the O and killer ah, yes, the
- 12:39Speaker 2: out of memory killer. When the kernel detects its critically
- 12:42Speaker 2: low on memory, the OM killer activates. Its job is
- 12:46Speaker 2: to pick one or more processes and terminate them to
- 12:48Speaker 2: free up memory and hopefully save the system from crashing entirely.
- 12:52Speaker 1: But it can pick the wrong process, right, I've heard
- 12:54Speaker 1: horror stories.
- 12:55Speaker 2: It absolutely can. The OM killer uses heuristics, but it
- 12:58Speaker 2: might kill your critical dayatabase to save a less important
- 13:01Speaker 2: web server worker, for example. It prioritizes freeing memory and
- 13:04Speaker 2: not necessarily preserving the most important service.
- 13:07Speaker 1: So why would an admin sometimes choose to make the
- 13:10Speaker 1: system crash instead using panic.
- 13:12Speaker 2: It sounds counterintuitive, but in some high availability scenarios, a
- 13:16Speaker 2: controlled crash is better than unpredictable behavior. Setting paticonum tells
- 13:21Speaker 2: the kernel, if you run out of memory, just panic
- 13:24Speaker 2: and crash the whole system immediately.
- 13:26Speaker 1: Why is that better?
- 13:27Speaker 2: Because a crash often generates a core dump, a snapshot
- 13:31Speaker 2: of the system's memory state at the time of failure.
- 13:34Speaker 2: This gives you detailed forensic data to analyze why it
- 13:37Speaker 2: ran out of memory. Letting the OME killer randomly killed
- 13:40Speaker 2: processes can lead to a cascade of failures that's much
- 13:43Speaker 2: harder to diagnose after the fact. It's about getting reliable
- 13:46Speaker 2: data from the failure.
- 13:47Speaker 1: Okay, that makes sense in critical environments. Let's move to
- 13:50Speaker 1: our last section, Section four. Hardening and newer technologies. Standard
- 13:54Speaker 1: file permissions ugorics are called discretionary access control or DAC.
- 14:00Speaker 1: What is selenic?
- 14:00Speaker 2: Adding on top of that, Selenic Security Enhanced Linux provides
- 14:04Speaker 2: mandatory Access control MAC. It's an additional layer of security enforcement,
- 14:09Speaker 2: managed by policy, not just by the file owner.
- 14:12Speaker 1: How does it work? Conceptually?
- 14:14Speaker 2: It works by confining processes. Each process runs in a
- 14:17Speaker 2: specific security context or domain, like HTTDT for the Apache webserver.
- 14:23Speaker 2: SELNX policy then dictates exactly what resources, files, ports, other
- 14:28Speaker 2: processes a process in that context is allowed to interact
- 14:31Speaker 2: with regardless of the standard Linux permissions.
- 14:34Speaker 1: So even if a file is world readable, SELENICX might
- 14:37Speaker 1: stop the webserver from reading it if the policy doesn't
- 14:40Speaker 1: allow it.
- 14:40Speaker 2: Precisely, it enforces the principle of least privilege at a
- 14:44Speaker 2: much deeper level based on system wide policy.
- 14:47Speaker 1: Now, SELinux has a reputation, let's say, for causing headaches
- 14:52Speaker 1: during troubleshooting, the temptation is just to turn it off.
- 14:55Speaker 1: Why is that usually a terrible.
- 14:56Speaker 2: Idea because you're essentially disabling a massive part of the
- 14:59Speaker 2: system's defense. Most Selenix problems aren't bugs in silinicx itself.
- 15:03Speaker 2: They're usually caused by files having the wrong security context label, like.
- 15:07Speaker 1: If you moved web content into placing.
- 15:09Speaker 2: Correctly exactly, or installed software in a non standard location.
- 15:13Speaker 2: The fix isn't set in forth zero disabling it. The
- 15:16Speaker 2: fix is usually to restore the correct file context using
- 15:19Speaker 2: restore con or maybe tweak a specific policy rule using
- 15:23Speaker 2: sale Linux booleians sets you bul or the semanaged tool.
- 15:26Speaker 2: Disabling it leaves you far more vulnerable. If a service
- 15:29Speaker 2: is compromised, learn.
- 15:30Speaker 1: To troubleshoot it, don't just disable it. Yeah, got it? Okay?
- 15:33Speaker 1: Remote access SSH secure shell It replaced older insecure things
- 15:38Speaker 1: like Telnet and FTP.
- 15:40Speaker 2: Right absolutely. SSH is the standard for secure remote log
- 15:43Speaker 2: in and file transfer.
- 15:44Speaker 1: And while passwords work, what's the better, more secure and
- 15:47Speaker 1: automation friendly way to authenticate?
- 15:49Speaker 2: Key based authentication? Public key cryptography.
- 15:52Speaker 1: How does that work?
- 15:53Speaker 2: Briefly, you generate a pair of keys, a private key,
- 15:56Speaker 2: which you keep secret and secure on your client machine
- 15:59Speaker 2: and a public key which you copy to the server,
- 16:01Speaker 2: usually into the dotsch authorized keys file in your home directory.
- 16:04Speaker 1: There and the server uses the public key to verify
- 16:06Speaker 1: you have the private key without the private key ever,
- 16:09Speaker 1: leaving your.
- 16:09Speaker 2: Machine correct no passwords flying over the network. Much more secure.
- 16:14Speaker 2: But there's the catch with permissions es.
- 16:17Speaker 1: SSH is picky, very picky.
- 16:19Speaker 2: Your eight ish directory on the server must have strict
- 16:21Speaker 2: permissions usually seven hundred only owner access, and the authorized
- 16:26Speaker 2: keys file itself should be readable only by you, like
- 16:29Speaker 2: six hundred. If permissions are too open, SSH will refuse
- 16:33Speaker 2: to use the keys as a security measure.
- 16:35Speaker 1: Good tip. Finally, let's touch on containers. They give you
- 16:37Speaker 1: process isolation kind of like VMS, but lighter weight. RHL
- 16:42Speaker 1: eight focuses on tools like Podman, build a SCOPEO. What's
- 16:45Speaker 1: the main security angle here, especially with Podman.
- 16:48Speaker 2: The big push with Podman is rootless containers. This is
- 16:51Speaker 2: a significant security improvement over say, the traditional Docker model,
- 16:55Speaker 2: which relied on a root privileged demon So.
- 16:57Speaker 1: Podman can run containers without needing root pleges itself.
- 17:01Speaker 2: Yes, you can run containers entirely as a regular unprivileged user.
- 17:05Speaker 2: This means if a process inside the container somehow escapes
- 17:08Speaker 2: or gets compromised, the attacker is contained as that regular
- 17:11Speaker 2: user on the host system, not as route. It dramatically
- 17:14Speaker 2: shrinks the attack surface.
- 17:15Speaker 1: That's a huge win. So podman runs them. What about
- 17:18Speaker 1: BUILDA and SCOPEO.
- 17:19Speaker 2: BUILDA is specifically designed for building container images, often using
- 17:24Speaker 2: definition files called container files, similar to Docker files. It's
- 17:28Speaker 2: focused just on the build process, okay. And SCOPEO is
- 17:31Speaker 2: a utility for working with container images on remote registries.
- 17:35Speaker 2: You can use it to inspect images, copy them between registries,
- 17:38Speaker 2: delete them all without needing to pull the entire image
- 17:41Speaker 2: down locally or run a full container engine. It's about
- 17:44Speaker 2: image management.
- 17:45Speaker 1: So podman build a SCOPEO plus red Hat's Universal Base
- 17:50Speaker 1: image UBI. That's the RAHL stack for containers.
- 17:54Speaker 2: That's the modern secure stack.
- 17:56Speaker 1: Yes wow, okay, We've covered a lot of ground there,
- 17:58Speaker 1: from the absolute basics of the shell and user identity,
- 18:01Speaker 1: through permissions, pseudo, the whole system of architecture, timekeeping, resource monitoring,
- 18:06Speaker 1: and then into advanced hardening with selnux, SSH keys and
- 18:09Speaker 1: secure contenter tooling.
- 18:10Speaker 2: It really shows how these foundational pieces build on each other.
- 18:14Speaker 2: Understanding the shell enable scripting. Understanding permissions enables Pseudo and SELinux.
- 18:19Speaker 2: Understanding systems helps you manage the services running inside containers.
- 18:24Speaker 2: It's all connected.
- 18:25Speaker 1: The journey from just using Linux to really administering it
- 18:29Speaker 1: effectively hinges on grasping these fundamentals. How it boots, manages resources,
- 18:34Speaker 1: enforces security.
- 18:35Speaker 2: Absolutely. That core understanding is what lets you solve complex
- 18:39Speaker 2: problems later.
- 18:40Speaker 1: So before we wrap up, let's leave you with that
- 18:42Speaker 1: final provocative thought, the ultimate break glass in case of
- 18:45Speaker 1: emergency knowledge, what happens if you completely lose the root password?
- 18:50Speaker 1: How do you recover access without reinstalling everything?
- 18:53Speaker 2: Ah, the ultimate test of system understanding. The sources point
- 18:56Speaker 2: to intervening very early in the boot process, within the
- 18:59Speaker 2: grub boot loader.
- 19:00Speaker 1: Menu, before Linux even really starts exactly.
- 19:03Speaker 2: You edit the kernel's boot parameters before it loads. You
- 19:05Speaker 2: add the parameter dot break to the end of the kernel.
- 19:07Speaker 1: Line word dot break. What does that do?
- 19:09Speaker 2: It tells the system to pause the boot process very
- 19:12Speaker 2: early on, before it mounts the main root file system ReadWrite,
- 19:16Speaker 2: and before it loads security policies like selenux. It drops
- 19:20Speaker 2: you into a minimal emergency shell, and from there, from
- 19:24Speaker 2: that minimal shell, the actual root file system is usually
- 19:26Speaker 2: mounted read only under sysroute. You need to remind it
- 19:29Speaker 2: read write mount rosis route. Then you use croute cisroute
- 19:34Speaker 2: to change your root directory into the real system's root.
- 19:37Speaker 1: So now you're effectively operating inside your main system, but
- 19:41Speaker 1: without the usual security constraints.
- 19:43Speaker 2: Active yet correct, and then you can simply run the
- 19:45Speaker 2: password command to set a new password for the root user.
- 19:49Speaker 2: Once done, you exit the creut, exit the emergency shell,
- 19:51Speaker 2: and let the boot process continue normally.
- 19:53Speaker 1: That's well, that's some serious power. Knowing how to interrupt
- 19:56Speaker 1: the system right at its birth.
- 19:58Speaker 2: It's the ultimate demonstration mastering the fundamentals. Now go try
- 20:03Speaker 2: it out on a test system, but be aware this
- 20:07Speaker 2: specific trick gets a lot more complicated if your root
- 20:10Speaker 2: file system is encrypted. That adds another layer entirely good point.
- 20:13Speaker 1: A final thought to explore. Thanks for joining us on
- 20:16Speaker 1: this deep dive.