Questions tagged [rhel]

Red Hat Enterprise Linux (RHEL) is a commercially supported Linux distribution.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

RHEL 6.10 updated to 7.9, install grub2 issue

After upgrading RHEL 6.10 to 7.9 I'm having issues installing grub2: Transaction check error: file /boot/efi/EFI/redhat from install of grub2-common-1:2.02-0.87.e17_9.9.noarch conflicts with file ...
0 votes
1 answer
41 views

secrets unintentionally printed to cloud-init logs

The two lines of bash code below pull a secret into a cloud-init script for an Azure VM running RHEL8. But each of the two lines has an unintended side effect of printing the secret into the cloud-...
  • 5,189
0 votes
0 answers
9 views

Cannot access BaseOS or AppStream directories

I'm working with RHEL 8 on VirtualBox 6.1.38. I had the RHEL 8 image attached to the RHEL machine and then mounted it successfully in /etc/fstab. I then attempted to open the following directories /...
0 votes
1 answer
18 views

how to join the domain the using winbind and samba with password in automation

I have installed samba and winbind in rhel8. I was trying to automate the domain join process as well. But when try it manually it is working as expected when we enter the password manually for "...
  • 1
0 votes
1 answer
50 views

Accidentally deleted yum.repos.d/ directory in my Amazon Linux AMI 2018.03 machine

By mistake i deleted yum.repos.d/ folder and all .repo files inside this folder using sudo rm -rf yum.repos.d/ so now i am not able to install anything and also not able to update. After deleted once ...
1 vote
1 answer
34 views

Resize an xfs-formatted logical volume group

My partitions currently look like this: sda 8:0 0 1.8T 0 disk └─sda1 8:1 0 1.8T 0 part /mnt/storage sdb 8:16 0 119.2G 0 disk ├─sdb1 ...
1 vote
2 answers
27 views

Extension partition /var with some giga of partition /home

I have a RHEL 7.9 virtual machine without GUI, and I would like to make updates via the yum update command but it tells me that the disk is full, especially on the /var folder. I thought I'd take 10GB/...
  • 21
0 votes
0 answers
9 views

Check login attempt to the server from log file

I'm tryig to display all users who successfuly logged in to server last 24 hours from logs file Command last is not acceptable I tried cat /var/log/auth.log Error /var/log/auth.log: No such file or ...
0 votes
1 answer
21 views

How does Linux Manage the Termination of Sessions?

I understand that maxlogins can be configured to limit the number of concurrent sessions in /etc/security/limits.conf or /etc/security/limits.d/*.conf. Example: hard maxlogins 10 Let's say I want to ...
0 votes
2 answers
15 views

Require systemd service to be started before executing init.d script

I have a script in /etc/rc.d/init.d/ on a Red Hat 7 system that is provided by a vendor. This script is able to be started and stopped via systemctl, but it appears to not actually be a systemd unit ...
2 votes
1 answer
22 views

resolv.conf being rewritten at reboot with wrong DNS IP

I got a server running RHEL 8.6. Whenever it gets rebooted, I get a newly created resolv.conf not containing the proper IP for my DNS. before reboot: nameserver X.X.X.X after reboot: nameserver Y.Y.Y....
  • 23
1 vote
1 answer
21 views

firewall-cmd shows ssh enabled, but nmap from client shows port 22 closed (Connection Refused)

New installation of RHEL8 with openssh-server installed, enabled, and running. firewall-cmd shows service ssh is added: [me@new.rhel.server ]# firewall-cmd --list-services cockpit ssh netstat -anp | ...
  • 3,064
1 vote
0 answers
10 views

CUPS lpstat -r Why do some printers show Ready To print while other printers do not show this

We use lpstat -p to view all printers that are enabled. I've noticed some printers show as 'Ready to Print' and other printers do not? All printers show as enabled. We are running RHEL 6.1
1 vote
2 answers
55 views

how to add new user username must be in numeric in red hat linux?

I want to add new user in red hat linux.Username must be in numeric i.e username 123456.I was trying to add but its given invalid user name so it is possible to add new username only in numeric.
  • 11
0 votes
0 answers
31 views

RHEL errata patch management on RHEL 7.9 machines

We have a large number of systems (over 1,000) which we are going to upgrade to RHEL 7.9. Once that upgrade is done, we want to apply security patch updates each quarter by using RHSA RPMs from the ...
  • 11.4k
1 vote
0 answers
11 views

How to find files modified on a specific day/month date (but with no specific year)

I'm looking for a find cmd argument to find every files modified in a specific day/month regardless of the year. For example, I would like to put in a file each file modified during any of 20th August ...
  • 11
0 votes
1 answer
37 views

how to enable ssh from container to Linux remote machine

we try to perform ssh / scp from docker container to remote LINUX redhat machine ssh remote_server echo $? 255 ssh -vvv remote_server OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading ...
  • 11.4k
-1 votes
0 answers
16 views

RHEL 7.9 Occur illegal opcode

I have found some problem after install RHEL 7.9 After Already reboot. OS can not start. It's stuck in Red Screen (illegal opcode) as a attached picture I have try run rescure mode but can not access ...
1 vote
1 answer
23 views

rsyslog config does not write to file

I just installed rsyslog on rhel8. So the /etc/rsyslog.conf file is stock. Here's my custom config: /etc/rsyslog.d/10-remote.conf module(load="imudp") ruleset(name="remote_udp"){ ...
0 votes
0 answers
15 views

squid proxy on redhat 7 is not allowing http traffic

I have two squid proxy servers. They both have same squid.conf file. One is allowing http traffic but other is not allowing http traffic. https traffic is working via both squid proxies squid config ...
0 votes
0 answers
31 views

Locale environment variables are not working with SSH

In one of our environments we have identified that LC_ALL=C is not taking effect when we SSH to the system. nas_02:~ #export LC_ALL nas_02:~ #locale LANG=en_US.UTF-8 LC_CTYPE="C" LC_NUMERIC=&...
0 votes
1 answer
26 views

RHEL 6 update to 7 issue when reboot

I have upgrade RHEL 6 to 7 on Redhat-upgrade-tool and use command "preupg" Check fail before run update to RHEL 7. The preupg result show this fail " |Requirements for the /usr/ ...
1 vote
0 answers
13 views

Dell Latitude 5430 no external video output with Rocky 9

I'm testing a Dell Latitude 5430 laptop to see if it will work with Rocky 9, a derivative of RHEL 9. So far everything is working except the external video connections. The laptop has three options ...
1 vote
0 answers
39 views

how does RHEL/CentOS 7 create the ifcfg-eth0 file?

I replaced a bad NIC in a server with a new one. After boot the ifcfg files under /etc/sysconfig/network-scripts are no longer there. I did not delete them. Therefore I conclude that during boot ...
  • 4,553
3 votes
1 answer
490 views

How do you uninstall a package that you manually cloned from git

I want to uninstall tmux on my machine. My tmux version is: tmux next-3.4 and which tmux gives me: /usr/local/bin/tmux I tried to uninstall it with sudo yum remove tmux, and I get: Updating ...
0 votes
0 answers
6 views

What is the need of enabling/disabling a module stream?

We know that # dnf module enable <module>:<stream> helps to enable a stream and # dnf module disable <module>:<stream> disables it. Also, # dnf module reset <module> ...
  • 11
0 votes
2 answers
40 views

Replace all character to space until it meet the first /

This is the string (it is the value of a shell variable): 2908104 /var/cache/yum/x86_64/7Server/Patches/gen Expected output: /var/cache/yum/x86_64/7Server/Patches/gen How to retrieve only the value ...
  • 3
0 votes
2 answers
21 views

Get a URL list of .rpm to update a package in closed network environments

Background I am running a server with RHEL 8 in a closed network environment. I can upload files to the server, but I can't use yum update on the server. I want to update a specific package to the ...
0 votes
1 answer
15 views

Yum update crashes

I am trying to run yum update on my Amazon-Linux-2 Workspace. It crashes with the following output ❯ sudo yum update Loaded plugins: amzn_workspaces_filter_updates, halt_os_update_check, priorities, ...
  • 111
0 votes
2 answers
57 views

How do I find out what is the hard disk for OS in Linux

in our bash scripts , we have many places in the code that need to capture only the disk that related to OS ( operation linux/RHEL system ) we are using Linux versions as 7.2/7.5/7.6/7.9 , and on most ...
  • 11.4k
0 votes
0 answers
22 views

strace with errors on openat syscall with Lustre FS, RHEL 8, overall intermittent latency

Does anyone see what could be causing this intermittent latency? At various times all commands become slow on login, compute and head nodes and only with logins associated with Lustre, i.e., root and ...
0 votes
0 answers
10 views

Reliably creating local / offline yum repo using a date or software version number

Problem I am looking to reliably create local yum repositories using a script that can be ran on any centos machine and result in the same offline repository being created. Example If I run the script ...
0 votes
1 answer
19 views

Running a few commands (that then ask questions) on startup

lets say I go to this file on linux CentOS to setup some startup commands sudo vi /etc/rc.local in this case lets say I want to startup uwsgi so normally in the command line I might type something ...
0 votes
1 answer
31 views

Unable to write to root from regular user

I'm doing some exercises from a RHEL 8 book and I need to write to root from a regular user. I'm using RHEL VMs with VirtualBox and Windows 10 as host. I'm logged in as root, and I have two terminals ...
0 votes
1 answer
69 views

What package manager exists in this linux distro

I have a container that I build with an image I got somewhere. I figuring out how to install packages in it. I've used dnf and yum. They both don't work as it gave a command not found error. Here's ...
0 votes
0 answers
57 views

Mismatch between host (RHEL8) and container (UBI8) subscriptions

According to RHEL documentation and basically any tutorial on the Internet, my podman containers should take advantage of it's host's subscriptions. But in my case it does not... On my host, I have : ...
0 votes
0 answers
19 views

Almalinux / RHEL Package building .. use Group for require

i would like to add base-x as requirement for the Package i would like to build. in the Past i Build Packages for SuSE and there i can use "group" dependencies ( Require: ) .. i only need to ...
  • 1
0 votes
0 answers
14 views

Redhat NFS issues after some time

We have multiple rhel 8 VMs who are accessing an NAS share via nfs (autofs). The VMs are our EDI system and writing a lot of small files to the share (30-40 million). A few weeks ago we changed the ...
0 votes
1 answer
34 views

Dual boot RHEL and Ubuntu using BIOS / LVM (separate partitions same RAIDed disk)

NOTE; I already did a backup so its ok if I loose data. I need to set up a dual boot system on baremetal dell server. Must be installed on one hard drive. The hard drive is a RAID 1 of two disks. I ...
  • 428
0 votes
0 answers
47 views

SELnux errors in RHEL 8 : SELinux policy enabled , suEXEC mechanism enabled , No slotmem from mod_heartmonitor , OpenSSL/1.1.1k configured

Recently I installed SSL certificate for my linux rhel 8 server. Now, I am trying to load the application files it trows error [pid 3176151:tid 139812477512000] SELinux policy enabled; httpd ...
  • 1
0 votes
2 answers
80 views

how to know if we need more CPU cores on our Linux server

we have the following Linux red-hat VM servers details , ( each server include application that runs under docker containers ) Linux redhat version - 7.6 number of CPU cores - 16 and we are suspect ...
  • 11.4k
0 votes
0 answers
30 views

restarting service remotely via snmp blocked by selinux/pam on Redhat8

I am having some trouble remotely starting/stopping/restarting a service through snmp. It seems to work fine with SElinux set in permissive but with it in enforcing mode it will fail with this type of ...
0 votes
0 answers
19 views

dnf group install --with-optional does not "recursively" install sub-options of sub-groups

If a group has 'optional' components/packages/etc, then --with-optional installs them. However, how can I get it to "recursively" install optional components of optional sub-groups within ...
  • 1
0 votes
1 answer
38 views

systemd integration

I was asked during an interview this ambiguous question, that I couldn't answer which one of this tools has not had functions integrated into systemd? udev consolekit sysvinit pam syslog
  • 1
1 vote
1 answer
28 views

Change in Pam configuration

I have change the password policy to apply the same for root by "enforce_for_root" and for now it apply the password complexity on root yet after removing the "enforce_for_root" ...
  • 11
0 votes
1 answer
50 views

How to do RHEL AWS EC2 instance inplace upgrade

We have AWS ec2 instance with RHEL 8.2 OS using a public redhat ami image. Need to understand if its possible to do an inplace upgrade of the EC2 instance from RHEL 8.2 to RHEL 8.6. If yes, what are ...
  • 103
0 votes
1 answer
40 views

Trying to extend partition

I have a Hyper-V RHEL VM where root has run out of space. In Hyper-V, I reallotted 1TB of disk space to the VM (it was about 120 GB before). In RHEL, I have this: Filesystem Size ...
  • 25
0 votes
1 answer
92 views

Can you exclude a single dependency automatically created by rpmbuild?

I'm using rpmbuild to create an custom rpm to install python3.9 from source. rpmbuild automatically creates dependencies for things that it determines are necessary via means described here. It is ...
  • 1,011
0 votes
0 answers
25 views

Not able to find the iso image path in VM

I am trying to Configure Local Repo in my VM which has RHEL8.X installed using the following command. [root@somaf-server ~]# mkdir -p /mnt/os [root@somaf-server ~]# mount -o loop /root/RhelFileName....
0 votes
0 answers
29 views

how to move disc space from rhel-home to rhel-root

I need to move disc space from home partition to root partition using RHEL-8.5. I am sharing the screen shot below. In the above image I have 421G assign to rhel-home partition but I need to move ...

1
2 3 4 5
76