Questions tagged [rhel]
Red Hat Enterprise Linux (RHEL) is a commercially supported Linux distribution.
4,034
questions
0
votes
1
answer
9
views
The grub2-mkconfig does not propagate renamed root logical volume on RHEL 9
On the RHEL 9.3 I have renamed the logical volume (LV) /dev/lvm01/root to /dev/lvm01/root.vol. I did everything to make the new name correctly recognized:
changed /etc/fstab entry
reloaded systemd ...
0
votes
0
answers
10
views
Mount overlay and assign owner to myuser
I've an entry in /etc/fstab like this:
overlay /etc/myfolder overlay defaults,x-systemd.requires-mounts-for=/var/data,lowerdir=/etc/myfolder,upperdir=/var/data/overlay/myfolder/upper,workdir=/var/...
0
votes
0
answers
26
views
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 ...
0
votes
0
answers
35
views
pgrep returns correct results only for partial script name [duplicate]
I have a script called synchronize_dirs.sh which just wraps a call to sleep:
-bash-4.2$ cat synchronize_dirs.sh
#!/bin/bash
sleep 60
-bash-4.2$
What's confusing to me is the behavior of pgrep in the ...
0
votes
1
answer
25
views
Unable to start service, auth could not identify password for
Im trying to start a linux service, however im getting the below issue when im trying to start the service. Please help with a solution of how to fix this issue
The user Test_user is set with ALL=(...
0
votes
1
answer
28
views
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 ...
0
votes
0
answers
24
views
Unable to install packages on Redhat Linux 8
I'm busy with an installation on a new Redhat Linux environment. I'm trying install a package but when I do the install I get the following:
[root@server01 ip]# ./install.sh
/tmp/...
0
votes
1
answer
80
views
Installing Python 3.9 on RHEL 7 Using Ansible 2.9.27
I need to install Python 3.9 on RHEL 7 system ( about 10 servers in each environment ) and then update / install Ansible 2.11 on the system. This is in preparation to upgrade Confluent version on ...
0
votes
0
answers
30
views
Put user's unit file in non-default location
My distro is RHEL 8.6. By default, all user's unit files are put in the /home/myuser/.config/systemd/user directory, then systemctl --user daemon-reload make them available. My question is how I ...
0
votes
0
answers
60
views
I get permission denied for a command in an sh script, but same command works from terminal
I have a service run by systemctl in RedHat 8.8. The service itself is relatively simple:
cat /etc/systemd/system/myservice.service
[Unit]
Description=My service
After=network-online.target
[Service]...
0
votes
1
answer
26
views
Resetting logical Direct-Access Error || RHEL 7.x
We have an error for the LVM resetting device which has been impacting our Linux server during this period.
kernel: hpsa 0000:02:00.0: scsi 0:1:0:1: resetting logical Direct-Access HP LOGICAL VOLUME ...
-3
votes
0
answers
39
views
Need help about creating a procedure for the installation of a new linux distro
Please help, how can i create a installation procedure (installation dvd) like RHEL's or ubuntu's for my newly created linux distro that manages datacenter environments. If you recommend, how can i ...
0
votes
0
answers
146
views
Rootless podman CIFS/SMB volume: lsetxattr operation not supported
I want to mount a CIFS/SMB share, that is mounted on my host, into a rootless container. I use the following command to mount the CIFS/SMB share to my host:
sudo mount -t cifs -o 'uid=me,username=...
0
votes
0
answers
9
views
loss of console graphical screen until Ctrl-Alt-F1
having a clean install of RHEL 8.8 x86-64, onto a Dell server with 192gb of RAM, and fully updated, and having systemctl set-default graphical.target... it is NFS exporting a /data folder. It exports ...
0
votes
0
answers
27
views
My redhat setup usb stucks on "[Finished] - Terminate Plymouth Boot Screen" I tried to reinstall the iso and wrote it again over again but it is same
I am trying it on hp-dbxxxx
I installed it over and over again. So don't ask me about it.
I had some conversations with Red Hat support technicians. They didn't help.
0
votes
0
answers
38
views
OpenSSL encrypt and decrypt between RHEL version
I am currently using the below command to encrypt & decrypt in RHEL 6. But I have pool of servers which contains RHEL 6 & 8, so the encryption may happen on RHEL6 node but the decryption might ...
0
votes
1
answer
26
views
Starting user units from custom path
I have successfully enabled user units in RHEL 8 under ~/.config/systemd/user directory. Enabling linger also gives me the option to start the service without having to login. My question, is it ...
0
votes
1
answer
38
views
How do I replace or remove the redhat logo placed in the activities button in the top-bar?
I notice there is a gnome-shell-extension to replace the activities button with a custom logo, but that's not what I need.
There is a deprecated activities configurator extension, which is not ...
0
votes
0
answers
29
views
httpd graceful restart - syntax error
Found this on my httpd server
[pid 18582] AH00171: Graceful restart requested, doing restart
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf....
0
votes
0
answers
41
views
How can Linux hibernation be enabled under UEFI Secure Boot on RHEL / RockyLinux / AlmaLinux?
When running under UEFI Secure Boot with a current Linux distribution, "kernel lockdown" will be instated. Multiple kernel messages along the lines of
Lockdown: swapper/0: hibernation is ...
0
votes
0
answers
29
views
mount folder directly to subdirectory of cifs share - RHEL 9
I have a cifs share that is currently mounted on serverA (in fstab - RHEL7) as:
//<servername>/SHARE/folder /cifshared cifs credentials=<path to creds file>
This works fine on ServerA.
I ...
0
votes
0
answers
15
views
IWA authentication alternative on linux
Im having a windows server configured with an adfs, which is used as Idp with saml in keycloak for my application, then I'm using adfs Device authentication, so I can login to my apps using my session ...
0
votes
0
answers
23
views
Setfacl not working only one file
I have set a face for the SSL folder in the Rocky Linux distro. The folder has default rx for my custom user. But when new SSL & key files are created. Certificate files have proper rights, but ...
0
votes
0
answers
41
views
How do you pass an array through systemd EnvironmentFile?
[root@vm-devcjn-01-a tmp]# cat /tmp/test_service_script_fred
#!/bin/bash
sleep 30&
echo `date` $# args: $@ > $0.log
When called from the shell, passing an array, works as expected:
[root@vm-...
1
vote
1
answer
41
views
ssh-jailed access restrict all groups, but allow one group
Requirement
ssh-jailed access restrict all groups, but allow one group.
login to VM-GP324911 for users in GP324911, deny others.
login to VM-GP9e68e for users in GP9e68ea, deny others.
login to VM-...
0
votes
4
answers
108
views
Cron Job: Best Practices
I have written a bash script which will be setup as a cron job in the future.
During the script development I have added echo lines to help me follow and debug my code, like the code snippet below:
#!/...
0
votes
0
answers
22
views
For a systemd template service, status ouput doesn't expand %i in ExecStart
The service script correctly starts a bash script with %i expanded in its name, but when I ask for status the %i isn't expanded. Here are the scripts:
#cat /etc/systemd/system/[email protected]
# The ...
0
votes
0
answers
33
views
RHEL9 make most of virtualisation features from RHEL7, how to upgrade to a modern OS?
I have a hypervisor that is installed on a CentOS 7.9.2009, with qemu-kvm. I have some virtualised old VMs that I would like to migrate elsewhere on a more modern system.
I tried CentOS 9.0 and Rocky ...
0
votes
0
answers
162
views
Unable to enumerate USB device - RHEL 7.9
I get this error when booting up:
usb usb5-port2: unable to enumerate USB device
Its a Gigabyte server, any advice would be greatly appreciated!
Thank you
0
votes
1
answer
42
views
How can I allow a single member of group as sudoer
I am looking for a solution to a use case where a group is granted sudoer privileges. However, only one specific user or member within that group should have sudoer permission privileges, while the ...
0
votes
0
answers
36
views
Restart systemd service when new user created
I need to restart a systemd service (running as root) every time a new user is created. I saw that some systems have a way to make an adduser hook but this isn't an option in RHEL8. What is the best (...
0
votes
1
answer
55
views
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=...
0
votes
0
answers
44
views
Can't access file even though I am the user, I have permissions, I have chowned/chmod'd the entire directory structure, selinux off
Sorry for the copy/paste, doing this over a remote screen share:
I am on Rocky Linux and I am at a total loss as to what is going on here. I can't cat/vim this file but as you can see, I am the owner,...
0
votes
1
answer
232
views
zsh: no such file or directory error even though the file exists [duplicate]
I'm getting an error while executing a binary that the binary cannot be found. I can see it using other commands.
>> ls -alh ...
0
votes
1
answer
55
views
CentOS Stream 9 image has predictable interface naming disabled
I'm using a qcow2 image from here.
Note the net.ifnames=0
cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-5.14.0-366.el9.x86_64 root=UUID=<uuid> ro console=ttyS0,115200n8 no_timer_check ...
0
votes
2
answers
75
views
How to stop automatic network provisioning
I recently installed RHEL 9 and attempted to delete all network interfaces. I removed all files in /etc/sysconfig/network-scripts folder and deleted the interface ens192 with nmutl. However, after a ...
0
votes
2
answers
165
views
Windows not reporting correct used and available disk space on Samba server with ZFS
I have a Samba server running ZFS in Linux.
It is a standard by-the-book install with no special configuration.
Each share is mapped to their own ZFS dataset, but not all datasets have their own ...
0
votes
1
answer
157
views
how can I create additional loopback interface permanentely?
I can use ip addr add 130.100.0.5/32 dev lo to create a loopback interface.
However, if I use /etc/sysconfig/network-scripts/ifcfg-lo to config it, it doesn't show up:
DEVICE=lo
IPADDR=130.100.0.5
...
0
votes
1
answer
82
views
how do I yum remove an rpm [gssproxy] and not also remove dependencies [nfs-utils]
I was given a security rule that says gssproxy must be removed. When doing so it also removes nfs-utils as a dependency. I need to keep nfs-utils to be able to nfs mount. Is there a way to remove ...
0
votes
1
answer
171
views
How to install PHP obtained from remi's repo and created local repository?
Here is my question, I am trying (forced) to install PHP 8.2 into almalinux 8.6, but in a weird way. The idea is to be able to install it without internet, but with some local repositories which ...
0
votes
0
answers
61
views
Environment variables are not getting loaded when script is executed on a remote server via SSH (RHEL 8)
I have a vendor script (startup.sh) to start application services on a Linux box. Script when called manually by logging into the server (as sudo su - userID) initiates all the environment variables. ...
0
votes
0
answers
46
views
linux Find Command not finishing
I have a directory
/home/history/customer
find /home/history/customer -type f -mtime +90 -print
there are no files older than 90 days. but this command just doesn't stop running and doesn't return ...
0
votes
0
answers
33
views
pam_sss(sudo:auth): unknown option: minimum_uid:6000
I've recently tried to convert my Rhel7 configuration to my Rhel9 setup.
I'm running into some issues when it comes to authselect and system-auth configuration file.
For Rhel7 I used following:
auth ...
0
votes
1
answer
183
views
Redhat 8 and xorg.conf and x11-xorg-drv-dummy and console monitor and VNC
For RHEL 8 not having an nvidia graphics card, I had instructions given to me to do a yum install xorg-x11-drv-dummy followed by creating /etc/X11/xorg.conf with
Section "Device"
Identifier &...
1
vote
0
answers
58
views
How can daemons source environment variables on a machine without persistent storage
I'm working on a Yocto Project build of an AARCH64 system, where I need the monit daemon (or at least a process started by monit) to access an environment variable I'm setting.
It's my understanding ...
0
votes
1
answer
82
views
Red Hat Directory Server and LDAP
So as the title suggests I have a Red Hat Directory Server with OpenLDAP installed. I also have Windows Active Directory (mixed network). I want to script creating new users on the Red Hat Side.
Now ...
2
votes
0
answers
47
views
How do I dynamically find a disk with free space to create a separate partition using bash
I would like to first state that I am new to disk partitioning, so if at any point my desired result is an impossible action to be performed on the workstation, kindly enlighten me on the proper way ...
0
votes
1
answer
45
views
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 ...
1
vote
1
answer
63
views
Where are RHEL9 bugs reported in 2023?
Red Hat Enterprise Linux 9 is no longer listed as a product under bugzilla at https://bugzilla.redhat.com/enter_bug.cgi?classification=Red%20Hat
There are no onward links indicating the issuer tracker ...
0
votes
2
answers
94
views
Disable the 'Other' User Option From LightDM
I am currently running LightDM on my AlmaLinux 8.8 machine and I wanted to know if it's possible to remove the Other user option as shown below.
I have already tried to edit the /etc/lightdm/lightdm....