• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Archives for February 2023

Yum Version Lock

February 21, 2023

How to lock a package or software in RedHat.

# For RHEL 5
yum install yum-versionlock
# For RHEL 6 and 7
yum install yum-plugin-versionlock
# For RHEL 8 and 9
yum install python3-dnf-plugin-versionlock

# For RHEL 5 yum install yum-versionlock # For RHEL 6 and 7 yum install yum-plugin-versionlock # For RHEL 8 and 9 yum install python3-dnf-plugin-versionlock

Locking a package

yum versionlock gcc-*

yum versionlock gcc-*

List locked packages

yum versionlock list

yum versionlock list

Filed Under: Linux Tagged With: install, lock, package, redhat, versionlock, yum

Key-Based SSH Prompting Password

February 21, 2023

Key-based SSH login is prompting a password despite it’s already setup to use keys. As turns out, the home directory was changed to 777. To fix, I changed home folder permissions and restarted SSH. It probably does not need a restart, but it doesn’t hurt.

chown -R username:username /home/username
find /home/username -type d -exec chmod 755 {} \;
find /home/username -type f -exec chmod 644 {} \;

chown -R username:username /home/username find /home/username -type d -exec chmod 755 {} \; find /home/username -type f -exec chmod 644 {} \;

sudo systemctl restart ssh

sudo systemctl restart ssh

Filed Under: Misc

Missing RHEL Prompt on Bash

February 20, 2023

Here’s how to restore or set the Bash prompt on RHEL systems.

echo "PS1='\u@\h \w]\$'" >> ~/.bashrc
source ~/.bashrc

echo "PS1='\u@\h \w]\$'" >> ~/.bashrc source ~/.bashrc

Filed Under: Linux Tagged With: bash, missing, prompt, restore, rhel, set

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023