Linux Stuff thats good to know - rosepheobieshea/SYS-255-Tech-Journal GitHub Wiki

Add user and set password and then add them to wheel

  1. Add user: adduser
  2. Set password: passwd
  3. Add user to wheel: usermod -aG wheel

Setup netowrking

  1. Start nmtui application

Important note: subnet masks must be entered through cider notation along with the IP address. For example, 10.0.5.5/24.

Disable SSH Root Login

  1. Open '/etc/ssh/sshd_config'
  2. Uncomment or change '#PermitRootLogin yes' to 'PermitRootLogin no'

Install/Enable Logging on Rocky Amazingly, RockyOS does not have logging by default. To remedy this install rsys.

  1. dnf install wget
  2. cd /etc/yum.repos.d/
  3. wget http://rpms.adiscon.com/v8-stable/rsyslog.repo
  4. yum install rsyslog
  5. systemctl is-enabled rsyslog
  6. systemctl restart rsyslog
⚠️ **GitHub.com Fallback** ⚠️