All Questions
484
questions
0
votes
3
answers
128
views
How to copy file from /opt directory in local system to remote system in /opt directory with sudo user
I have redhat machine in this machine having some file under the /opt directory. I want to copy those file in remote machine /opt directory using rsync command. The condition is i'm using admin user ...
0
votes
0
answers
32
views
Configure a server to act as an internet gateway [duplicate]
I have two virtual servers hosted in Hetzner Cloud. The first server (let's call it Access Server) has a Public IP assigned and has internet access. The second server does not has a public IP assigned ...
0
votes
0
answers
73
views
What is the equivalent of /etc/apache2/envvars in EL-based systems?
In Debian-based systems, it's possible to source a bash script in /etc/apache2/envvars to dynamically set an environment variable. Here is an example:
Create a file (/etc/profile.d/myenv.sh) with the ...
0
votes
0
answers
90
views
How to prevent ethernet issues after command line shutdown in CentOS7?
I'm running into a frustrating issue with a system running CentOS7. There's an Intel NIC (Intel Corporation Ethernet Connection (2) I219-LM (rev31)) which, when working, provides a 1000Mb/s connection....
0
votes
1
answer
93
views
Map dev notation to logical volume name
I need to figure out what dm-2 or dm-0, etc. is (this notation is found in dmesg notices, sysstat reports, etc.) and lsblk is not installed
I find lvdisplay output a little bit confusing.
Can someone ...
0
votes
0
answers
139
views
SSSD LDAP CONFIGURATION
I am trying to configure ldap on port 636 on a redhat server. Right now, when I try the following command :
netstat -antup | grep -i 636
I get
tcp 0 132 IP_ADDRESS_1:40670 XX.XX.XX.XX:...
3
votes
1
answer
930
views
Cross domain authentication with transitive forest trust for linux
I have two domains -- one for dev and one for corp.
I can join a Windows machine to the dev domain and login as a corp user because of the transitive forest trust. I can join a Linux machine to the ...
0
votes
1
answer
295
views
Yum command to find files that an RPM will deploy
On Ubuntu/Debian you can run
apt-file list nginx-core
and you will get a list of all the files that a package will deploy when installed.
How can I achieve this in RHEL with the yum command ?
The ...
0
votes
0
answers
1k
views
xfs corruption metadata after reboot
I had a problem on a RAID1 with 4 disks. We replaced the faulty disk and restarted the server, the rebuild was done, two linux centos 7 machines did not come up accusing error of xfs corruption. Other ...
2
votes
2
answers
1k
views
Redhat phantom out of memory issues
We have a server that runs various headless applications, such as Java. It processes to stream data, daily python scripts, etc. From time to time some of our applications get out of memory errors.
The ...
-1
votes
1
answer
890
views
PermitRootLogin set to no but can still use root on Centos Stream 9
Im following an RHCSA training course and to disable root I need to set PermitRootLogin to no in the /etc/ssh/sshd_config file and restart sshd using systemctl. I've done all this and can still login ...
0
votes
0
answers
2k
views
dnf update: Cannot download, all mirrors were already tried without success. (all mirror 404)
I am trying to execute the dnf update command on almalinux 8.7
Before a few hours it worked properly, now all mirror gives 404.
I examined the urls, and it seems, that in all repo the checksum in urls ...
0
votes
1
answer
468
views
Routine SCP Command fails (VPN/Network Active)
My dev machine runs on Fedora (36).
Recently I attempted to scp a file to a remote server (CentOS 7) and got a cryptic error message:
scp: dest open(""): No such file or directory
The ...
-1
votes
1
answer
52
views
Linux analyze and monitoring log tool?
I have a server using OS centos-7, but sometimes my server got slow with some processes. I want to check which service or process makes the system slow. how to check the percentage of CPU, ram, or ...
0
votes
1
answer
1k
views
How to safely downgrade gcc from 8.5 to 8.4?
I have a CentOS Stream 8 server with a backup application that requires the kernel to be compiled with the same version of gcc. Latest kernel is: 4.18.0-408.el8.x86_64
I inadvertently updated gcc in ...
0
votes
1
answer
6k
views
How to enable legacy ciphers in modern SSH client [duplicate]
Got a shiny new OL9 and I need to connect to some legacy servers, as in CentOS 5.
The OL9 SSH client does not support the legacy ciphers that CentOS 5 supports:
[opc@vm1 ~]$ ssh legacyServer
Unable to ...
2
votes
1
answer
1k
views
Install QEMU for Docker Buildx on Rocky Linux 8
I am preparing a Rocky Linux 8.6 system to run Docker Buildx for multi-architecture images. Ideally I'd like to have a host installation of QEMU and binfmt_misc (rather than one based on a Docker ...
0
votes
1
answer
59
views
How to deduce remote location of RPM that has been installed?
Suppose I had the following entries in /var/log/dnf.log:
elfutils-default-yama-scope noarch 0.185-1.el8 baseos 49 k
elfutils-devel ...
1
vote
1
answer
2k
views
How to recover from the GRUB losing its entries and faced with only "grub> _" at boot?
I performed a system upgrade from CentOS 7 to AlmaLinux 8 rather successfully (as noted here). During the process something strange happened and GRUB lost its boot entries entirely and my limited ...
1
vote
1
answer
132
views
FreeIPA migrate the current NFSv4 storing home directories to another server
I have a FreeIPA set-up that uses NFSv4 to store users' home directories. NFS is running on the same physical server as the FreeIPA. CentOS btw. I'd like to move the NFS server on a new machine and ...
0
votes
0
answers
15
views
Public Cloud Virtual Machine - Restrict Uninstalling Packages
During the evaluation on public cloud(VMs) security product, Below question came into my mind. I would like to request your kind consultancy to fix this challenge
Requirement: Install a security agent ...
0
votes
1
answer
2k
views
saving ip config persistent with nmcli or something equal?
I am using RocksLinux where I set up my IP addresses by hand with the standard command "IP" and "IP -6" for my IP version 4 and 6 addresses.
Now I want to save with NetworkManager, ...
0
votes
2
answers
708
views
Fedora | how to restore iptables from specific file on boot
I need to make ip-tables persistent on my machines.
I was able to do it on Debian based systems by creating the following file which runs when my network is up:
/etc/network/if-up.d/run-iptables
#!/...
3
votes
2
answers
5k
views
How do I update a very old CentOS release (6.2) where yum won't work at all because of outdated openssl certificates?
I have an old CentOS 6.2 machine and need to update a few packages on it (or many packages, I suppose).
However I can't do anything with yum because even after changing the repos to vault.centos.org, ...
7
votes
3
answers
12k
views
Linux LVM - PVID last seen on
Devices file sys_wwid nvme. PVID last seen on /dev/nvme0n1p2 not found.
OR
Please remove the lvm.conf filter, it is ignored with the devices file.
Seems this is happening on RHEL 9 / CentOS 9.
1
vote
0
answers
418
views
Apache and VirtualHosts in RedHat, Can't figure it out
already did my research and Im burned after reading and watching videos for hours; I can't make virtual hosts works at all, it doest matter which configuration I set but Apache will ignore it and ...
1
vote
1
answer
653
views
Can you use a proxy server to retrieve a kickstart file?
I would like to access a kickstart file through a proxy. The kickstart file is hosted on the public internet but the server doing the install can only access the internet through a proxy.
The ...
1
vote
1
answer
703
views
yum not updating dependency during install
I have a situation where my-software requires my-common via:
Requires: my-common >= 1.2.0
During yum update my-software, my-common is not upgraded, and is left at version 0.0.1.
Why is yum not ...
0
votes
1
answer
94
views
How to automatically install different operating systems based on server specifics?
I have a lab of servers that need to be rebuilt frequently. I currently have a PXE server on a special vlan that can automatically install a single OS without human interaction.
How would I expand ...
1
vote
0
answers
207
views
what are the kernel messages about "Disabling DIF Type 2 protection" means
On our RHEL 7.2 server we saw a strange kernel messages with lines as:
Disabling DIF Type 2 protection
***10DIGITS*** 512-byte logical blocks: (2.00 TB/1.81 TiB)
Above messages are relevant for all ...
0
votes
1
answer
1k
views
Create a /tmp partition that uses filesystem type of tmpfs in kickstart?
I'm writing a kickstart script to use when PXE booting to automatically configure new systems with basic settings. I've got everything working except for the partitioning of the boot drive: my /tmp ...
1
vote
0
answers
387
views
Temporarily disable minimum password time in FreeIPA after password reset by support
We use FreeIPA 4.6.8 and we have users that of course forget their passwords. However, password policy has a minimum password time of 1 hour. When support resets their password for them and provides ...
0
votes
0
answers
561
views
Properly Configuring Grub for a Two-drive raid1 to Support Boot After a Drive Failure
Edit:
So, I think the question still applies below, but I realized that the system is actually booting on the second drive, it's just missing /home, /boot and /etc/fstab. I am sure there is more ...
-2
votes
2
answers
177
views
Can I learn to RHCSA on EC2
I have MacBook with M1 processor and I want to learn to RHCSA exam. There are no ARM distributions yet and I can't create local environment, would it be ok to provision EC2 centOS instance? I'm just ...
4
votes
0
answers
514
views
Showing [Installed Version] when upgrading with dnf in CentOS/Redhat/Fedora/Rocky Linux
When running dnf upgrade it only shows the new version of a package about to be upgraded. But I would like to see what the currently installed version of the package is too. Without having to go look ...
1
vote
0
answers
216
views
selinux - why can't stuff_u with sysadm_r run postsuper?
I am trying to understand how selinux confined users really work, but there are a few behaviours that I still can not understand.
According to redhat
SELinux User Capabilities
stuff_u users should be ...
0
votes
0
answers
177
views
linux + how to extend sdd1 partition based on that sdd disk have enough space
We have rhel server 7.2 version ( VM machine ) with sdd disk
sdd disk have parted partition sdd1 , and our goal is to increase the sdd1 partition to 10g from current 1K size
From
lsblk
sdd ...
3
votes
0
answers
4k
views
how to allow outgoing traffic with firewalld / libvirt on CentOS 8?
I installed a CentOS 8 guest on a CentOS 8 host using libvirt. However firewalld is blocking all outgoing traffic from the guest to the internet unless I use target=ACCEPT for the libvirt zone.
The ...
1
vote
1
answer
386
views
Issue with removing LV disk space that was extended from another disk
I have a redhat server with two disks 100gb and 500gb. The 500GB disk was unused, however I then used it to extend the /var LV. The filesystem on all mountpoints are xfs and you actually can't reduce ...
2
votes
1
answer
2k
views
What is the lifecycle of Oracle Linux for minor releases?
We are discovering Oracle Linux and considering the move from other RHEL clones.
One question that's remains unanswered is: what's the lifecycle of minor releases on Oracle Linux? Do we get updates, ...
1
vote
1
answer
2k
views
netcat-openbsd in RHEL/Centos (RPM)
There are two versions of netcat (nc) utility: netcat-openbsd and GNU netcat. For example, in some distributives like Debian or Arch user could choose which version of the package he/she would like to ...
1
vote
1
answer
4k
views
Oracle Linux 8.3 can't find libyaml-devel
I'm evaluating Oracle Linux as a CentOS alternatives. During my tests I have to compile a package depending on libyaml-devel but the lib isn't present in the repo.
I had the impression Oracle Linux ...
0
votes
3
answers
2k
views
`yum`/`dnf`/`rpm` equivalent to `dpkg -l` for RHEL/CentOS?
Is there an equivalent yum, dnf, or rpm command to Debian/Ubuntu's dpkg -l command to list both package names and installation status?
0
votes
0
answers
1k
views
Firewalld will not start on CentOS
I have a CentOS server that I recently ran yum-update on and the only update was to centos-release. I applied the update and ever since FirewallD has been throwing errors.
I uninstalled and ...
1
vote
1
answer
2k
views
CentOS disable IPv6 SLAAC EUI-64 Address Generation
While manually assigning a static IPv6 address on CentOS release 7.9.2009 works. I noticed that another (second) IPv6 address is being generated the so called EUI-64 containing ff::fe in the middle of ...
0
votes
1
answer
4k
views
yum history list + how to verify rpm historical status
The rpm command gives every package installed a transaction ID. The transaction ID is a Unix time stamp (number of seconds since January 1, 1970). You can then perform some operations on packages ...
0
votes
1
answer
1k
views
add additional partition after increasing OS disk size
As part of add additional partition – sda3 we extend the OS disk from 50g to 120g from the vsphere client ( VM Linux server )
And we perform rescan , instead of reboot
lsblk
NAME MAJ:MIN ...
1
vote
1
answer
64
views
Dell PowerEdge R540 Installing RHEL 5.3 Legacy OS on new hardware
I have a new (2020) Dell Power Edge R540 x86-64 Server. It will run a vendor supplied cobol application and requires RHEL 5.3 or CENT OS 5.3 for the operating system. Yes I agree this is frustrating ...
0
votes
1
answer
3k
views
subscription-manager fails with error "'NoneType' object has no attribute '__getitem__'"
when i want to register my redhat machine . i get this type of error.
[root@client ~]# subscription-manager register
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: saiful31
...
6
votes
1
answer
27k
views
"system clock synchronized: no", flip it to yes
# timedatectl outputs
Local time: Tue 2020-10-06 13:35:31 PDT
Universal time: Tue 2020-10-06 20:35:31 UTC
RTC time: Tue 2020-10-06 20:35:30
...