RHEL9: Difference between revisions

From Dave-Wiki
No edit summary
Line 1: Line 1:
=Summary=
Red Hat Enterprise Linux is a commercial Linux distribution developed by Red Hat, Inc. It is designed for businesses, offering a reliable, secure, and scalable operating system for servers, workstations, and cloud environments.
=New Deployment=
=New Deployment=



Revision as of 16:05, 21 January 2025

Summary

Red Hat Enterprise Linux is a commercial Linux distribution developed by Red Hat, Inc. It is designed for businesses, offering a reliable, secure, and scalable operating system for servers, workstations, and cloud environments.

New Deployment

A collection of common things to do on almost any new RHEL deployment.

Software To Install

subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

dnf install vim wget tmux htop iftop net-tools bind-utils traceroute tcpdump nmap mtr net-snmp-utils rsync git lsof usbutils yum-utils unzip python3 open-vm-tools nfs-utils -y

dnf group install "Development Tools"

Networking

See NetworkManager.

Disk/Filesystem

Erase a Disk

dd if=/dev/zero of=/dev/sdx status=progress && sync

Users & Passwords

Show Password Expiration, etc.

chage -l bob

passwd --status bob

Remove Password Expiration

chage -E -1 bob

Expire A Password Immediately

chage -E 0 bob

Remove Password Validation Checking

chage -m 0 -M -1 bob

Disable a User's Shell (prevents login)

usrmod -s /sbin/nologin bob

List Sudo Privileges

sudo -l