RHCSA

Active Started Feb 28, 2025 3 jots

I currently have a virtual machine environment set up at home with three RHEL10 test nodes running configuration variations in order to test exam tasks.

Jots from this project

Bypassing a locked root account in RHEL10 is different than RHEL7/8/9 because rd.break no longer works; init=/bin/bash must be used. Moreover, even with enforcing=0 included, the system will break unless sudo restorecon -vZ /etc/shadow is also run from the chroot after any passwd edit to root.

Situation: ssh-copy-id succeeds, but password still required to connect:

Triage:

To verify that the fingerprint of the local public key matches to a corresponding fingerprint in the remote ~/.ssh/authorized_keys file, run ssh-keygen -lf ~/.ssh/authorized_keys on the remote device, then ssh-keygen -lf ~/.ssh/id_<YOUR_KEY>.pub on the local device. There should be a match if ssh-copy-id succeeded.

Root Cause

The issue is not the key's content but the…

Abridged Only the first 500 characters are shown here. The rest of this jot is in the ssh drawer →

Some partition commands

fdisk -l     #grab info on disks
resize2fs     #resize a filesystem
lvreduce     #resize a logical volume
lvextend     #extend a logical volume

fdisk /dev/<disk>    #partition a disk. 

`g` in fdisk = gpt
`n` in fdisk = label
`t` in fdisk = type (lvm, swap, nfs)
`b` in fdisk = delete
`p` in fdisk = print change buffer without write
`w` in fdisk = write changes

findmnt --verify    #an /etc/fstab-scanning lifesaver

like nobody puts…

Abridged Only the first 500 characters are shown here. The rest of this jot is in the RHEL drawer →