rhel

How to specify dynamic "Environment" variables in a systemd unit file?

How to specify dynamic "Environment" variables in a systemd unit file? This $(ls -d…) does not work in a systemd unit file: [Service] Type=forking Environment="ORACLE_HOME=$(ls -d /usr/lib/oracle/*/client64 | sort -rV | head -n1)" Environment="TNS_ADMIN=$(ls -d /usr/lib/oracle/*/client64/lib/network/admin | sort -rV | head -n1)" I want to avoid hard-coding the Oracle client version (at the moment 19.19), …

Total answers: 1

ssh prompts for password when providing non-default key

ssh prompts for password when providing non-default key I have a question about ssh public key authentication. I have generated on a RHEL 9 machine a key pair – protected by a password- as follows: ssh-keygen -f .ssh/key2 Then, I have copied the pub key on a remote host: ssh-copy-id -i .ssh/key2.pub operator1@servera Now, when …

Total answers: 1

Why hard link doesn't corrupt if we remove the original file?

Why hard link doesn't corrupt if we remove the original file? Why the hard link doesn’t corrupt if we remove the original file? If I remove the original file then the softlink gets corrupt but hard link doesn’t so why it does’t corrupt Asked By: Rahul Sharma || Source It is because hardlinks are essentially …

Total answers: 3

CentOS 7.9 not reporting full version number after recompiling kernel

CentOS 7.9 not reporting full version number after recompiling kernel I needed to enable SCSI support in CentOS 7.9 so I followed the instructions here: https://wiki.centos.org/HowTos(2f)I_need_the_Kernel_Source.html to add SCSI support and recompile, which worked as expected, but instead of uname -r reporting 3.10.0-1160.108.1.el7.x86_64, it only reports 3.10.0, and the vmlinuz files it creates in /boot …

Total answers: 1

Difference between sysctl options to set system parameters

Difference between sysctl options to set system parameters I see on the web two different commands to load sysctl custom parameters: sysctl –system sysctl -p Is there any difference between the two commands? I know the second one I posted can take the path of a file to load but without any file specified, everything …

Total answers: 1

RHEL9: List dependencies of a "rpm" package with "dnf": I wish to see the Repo package name

RHEL9: List dependencies of a "rpm" package with "dnf": I wish to see the Repo package name List dependencies of a "rpm" package with "dnf". dnf repoquery –requires java-17-openjdk-devel Updating Subscription Management repositories. (..) /bin/sh /usr/sbin/alternatives java-17-openjdk(x86-64) = 1:17.0.2.0.8-13.el9 java-17-openjdk(x86-64) = 1:17.0.3.0.7-1.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.0.8-2.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.1.1-2.el9_0 java-17-openjdk(x86-64) = 1:17.0.4.1.1-5.el9 java-17-openjdk(x86-64) = 1:17.0.5.0.8-1.el9_1 java-17-openjdk(x86-64) …

Total answers: 1

How to install cryptsetup-luks

How to install cryptsetup-luks I’m actually trying to setup LUKS on a Red Hat 9.2 Server. Here is the problem : I can’t do yum install cryptsetup-luks or dnf install cryptsetup-luks. When I try to use one of these command I have the following output : no match for parameter: cryptsetup-luks error: unable to find …

Total answers: 1

sudo Acting Differently on Two Machines – same account

sudo Acting Differently on Two Machines – same account RHEL 8.8 on VMWare (eSXI) on two different VM’s (server01 and server02) So we have an administrative account in our AD "pfsadmin" used for various purposes including stopping and starting database brokers etc. It is a member of the group "progress" among others. Both machines have …

Total answers: 1

latest yum/dnf packages not showing on RHEL 8

latest yum/dnf packages not showing on RHEL 8 We have several RHEL 8.8 instances in AWS which have the BaseOS and AppStream RHUI repositories available. However, we cannot see updated versions of several packages which were flagged in a recent Nessus scan – one example would be the 8.9 kernel, 4.18.0-513.5.1.el8_9, though there are a …

Total answers: 1

Problems installing QT online installer in Rhel 7

Problems installing QT online installer in Rhel 7 Relatively new to linux. I’m trying to run the qt online installer on a rhel 7 machine. Version info: [root@localhost Downloads]# hostnamectl Static hostname: localhost.localdomain Icon name: computer-laptop Chassis: laptop Machine ID: 984cef87c98f48be9355b28d1e22aa17 Boot ID: 36ec38de9f964dcfa7242c6c7da77e11 Operating System: Red Hat Enterprise Linux CPE OS Name: cpe:/o:redhat:enterprise_linux:7.9:GA:workstation Kernel: …

Total answers: 1

How to find which clients are using a sendmail SMTP relay?

How to find which clients are using a sendmail SMTP relay? We have sendmail set up as a SMTP relay on a RHEL 6 machine. How can we find the hostname or IP address of remote clients using this relay to send mail? Is this information logged somewhere? The relay= field in /var/log/maillog specifies the …

Total answers: 1

zsh: no such file or directory error even though the file exists

zsh: no such file or directory error even though the file exists I’m getting an error while executing a binary that the binary cannot be found. I can see it using other commands. >> ls -alh total 1.3M drwxr-xr-x 3 igor 4.0K Sep 28 15:53 . drwxr-xr-x 3 igor 4.0K Sep 28 15:53 .. drwxr-xr-x …

Total answers: 1

CPU IDLE low as results of bad disks is it the case here

CPU IDLE low as results of bad disks is it the case here Low CPU IDLE can be caused by a variety of factors, including:Insufficient RAM or slow Hard Disk Drive but in our RHEL server RAM memory have enough RAM but from dmesg we found couple errors about the disks drive our suspicion is …

Total answers: 1

Linux Groups – administration tables

Linux Groups – administration tables Using Red Hat Enterprise Linux 7.9 Shell = sh When I execute … getent group <group-name> — command 1 e.g . >>> getent group grp1 grp1:VAS:67458 usr3,usr2,usr1 >>> groups usr4 usr4: unixuser grp1 >>> getent group grp1 grp1:VAS:67458 usr4,usr3,usr2,usr1 result is not up to date, certain users are missing from …

Total answers: 1

What is dbus_enable?

What is dbus_enable? I am hoping someone can explain what dbus_enable is and what benefits it would bring should I include it. Additionally I am not sure where this would be placed however I feel it may be added to the ~/.bash_profile file, like so: # User specific environment and startup programs dbus_enable=YES The reason …

Total answers: 1

Is NFS proto=udp supported in RHEL 8 nfs-utils-2.3?

Is NFS proto=udp supported in RHEL 8 nfs-utils-2.3? I can get vers=3 to happen, and I can get mountproto=udp to happen, but I cannot get a proto=udp to happen on the nfs client. I can only get proto=tcp on the nfs client. Is proto=udp supported in nfs-utils 2.3.3 that is in RHEL 8.8 ? here …

Total answers: 1

difference NFS proto and mountproto

difference NFS proto and mountproto in RHEL 8.8 when I am trying to test NFS tcp versus udp and versions 3 versus 4.0, 4.1 and 4.2, I observe on my nfs client a mountproto= in addition to proto= when typing mount. What is the significance of this and what does it mean? Should I be …

Total answers: 2

How do I set the size of /run (tmpfs)

How do I set the size of /run (tmpfs) I’m running AlmaLinux 9.2 (systemd v.252) on a small embedded(-ish) system, where I like to keep a lot of stuff in /run. When I was using CentOS7.x this was on the order of 1.5G, and I never really thought about it. However, since we have moved …

Total answers: 1