Questions tagged [centos]

Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Viewing large (4M) files produced by the script command

vim, less, more, top all hate files produced by the script command. script doesn't produce a text file. It produces a binary file full of terminal control info based on everything that happened in the ...
0
votes
2answers
31 views

server unresponsive after configuring raid 1

On a brand new server I've got 2 SSD discs that are by default configured to RAID 1 and 2 6TB discs that are not. The 6TB discs are identified as /dev/sdc and /dev/sdd I've run these commands (taken ...
1
vote
1answer
23 views

Is there a way to get rid of this error bash: /usr/bin/yum: /usr/bin/python2: bad interpreter: No such file or directory

Is there some other way to sort this out without having to manually get the packages using the RPM?
0
votes
0answers
51 views

Should I worry if 'pkexec' is in a cPanel user's /home/virtfs (CVE-2021-4034)?

The recent security bug CVE-2021-4034 in Linux involves /usr/bin/pkexec. Following media reports (zdnet, etc.) I changed its permission, but also found this file: /home/virtfs/foo/usr/bin/pkexec for ...
1
vote
1answer
15 views

Can't login to phpMyAdmin on Centos, Google Cloud

In my MySQL database, I've created two users, one regular user (who has privileges for one database) and one superuser. When I want to login via any of these accounts to phpMyAdmin I get a "...
0
votes
0answers
26 views

SSH CA signed keys, one accepted, one rejected

I have several CentOS 9 and one CentOS 7 VM. All are configured to trust my SSH CA for Key verification. I can ssh into all of them with key A, but the CentOS 7 VM rejects Key B. I can't seem to ...
0
votes
1answer
9 views

Increase/Decrease Brightness F-keys on Keyboard not working in AlmaLinux?

After installing AlmaLinux on a Toshiba Portege laptop and choosing the workstation setup, the brightness control keys do not work. The hardware is capable and Linux compatible, as evidenced by the ...
-2
votes
0answers
11 views

Centos Grub restore after reinstalling windows 10

I have reinstalled windows 10 as it got creashed and came to this issue. I ma not getting centos at boot option. Your help in this regard will be highly appreciated. I have tried some part but no luck....
0
votes
1answer
56 views

Can't install Certbot for Apache on CentOS Stream 9 (python3-certbot)

On Centos Stream 9, when I try to install certbot (sudo yum install certbot) into the server it returns: Error: Problem: package certbot-1.22.0-1.el8.noarch requires python3-certbot = 1.22.0-1.el8, ...
1
vote
1answer
41 views

Freeradius (radiusd) service can't start on boot but can start manually

I managed to setup freeradius server on Centos 7 using compiled source at ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-3.0.18.tar.gz Everything works perfectly fine except, the service ...
0
votes
0answers
12 views

Split tunnle on OpenVPN cummunity for everything except VPNs internal network

As I had very short time to set remote access, I have set up my OpenVPN server using the script which is available via github. Install OpenVPN via script The downside of this script is that all ...
0
votes
1answer
33 views

How does CentOS (or Redhat-based) OS' construe file copies?

General question regarding a copied file: Does CentOS (or RH-based) OS's append a 'space' and number to a file which already exists? Example: If software is told to rename a file if a file with the ...
0
votes
2answers
71 views

Broke file permissions and can no longer load webpages on server

I noticed an unusually large number of SSH attempts on my server so disabled the root login for SSH, created a new sudo user and confirmed I was able to log in without issues and elevate myself to the ...
0
votes
0answers
24 views

GMail woes: Error 550 5.7.1

I have a series of Inbound email servers and virtual domains that send out email via one smtp outbound server. We do absolutely no SPAMMING or Bulkmail of any kind. outbound server is Centos 7, ...
0
votes
0answers
16 views

Initial connection very slow

I have a client that came to be with a system where every initial connection was very slow. if you load the web server it can take a while to load. If you SSH into the server it seems to hang as well....
0
votes
0answers
16 views

CentOS 7 - Isolated cores are not isolated in practice

I have a pair of CentOS 7 servers (7.9.2009) with 8 physical CPUs each. Out of those, I'm trying to isolate cores 4-8 (so 3-7 as the OS sees them). I added the tag isolcpus=3-7 to /etc/default/grub ...
0
votes
0answers
49 views

How can I create a virtual subnet that spans multiple servers?

I have some CentOS 7 servers hosting VMs. The VMs are connected to a network bridge on their respective hosts that allows them to communicate with each other and with the host (via a dummy adapter on ...
-3
votes
1answer
30 views

How can I make my iptables rules perist after reboot on CENTOS 7

iptables-save > /etc/iptables.ruleset I run this and it doesnt save after reboot please give me a soultion
0
votes
1answer
17 views

On CentOS when I statically assign on ip address to my second interface , my primary nat interface does not work

When I statically assign an IP address to my second interface , my primary NAT interface does not work. I am new to Cent OS and I am using NAT and when I change the second interface statically , my ...
0
votes
1answer
40 views

How to Rename middle part of multiple files [duplicate]

I have some numeric files like: test01-aaa.txt test02-bbb.txt test03-ccc.txt test04-ddd.txt I need to remove aaa,bbb,ccc,ddd part from the name. what is the best way i can do? I tried with 'rename' ...
-1
votes
2answers
24 views

Create symlinks with wildcard

I'd like to create a symlink with a wildcard : ln -s jetty_server01.file jetty_*.file So all requests to a file named jetty_*.file will link to target jetty_server01.file, in the same directory. Is ...
2
votes
1answer
48 views

CentOS 7: after reboot, zfs module won't load, no /dev/zfs

After 959 days a reboot was needed on the CentOS 7 system which has used ZFS flawlessly for the past years. I have run yum update once a month during that time. The rebootet system is apparently ...
0
votes
0answers
19 views

CentOS / RHEL Installers Can't see my Computer's Hard Drives

I've tried installing Ubuntu and the installation went flawlessly. However, I'm interested in CentOS / RHEL This is an old Windows Vista era Dell Inspiron 531. I've seen the info regarding AHCI and ...
0
votes
0answers
23 views

Log downloaded packages for mirror

We create local package mirrors with debmirror for deb packages and reposync and createrepo for rpm packages. Is there a way to log the names of the downloaded packages and/or overall size and number ...
0
votes
1answer
35 views

what's the difference: /etc/nfs.conf vs /etc/sysconfig/nfs in RHEL/CentOS 7

in RHEL 7.9, there is /etc/nfs.conf and /etc/sysconfig/nfs. why the two? which one should be edited, and should one and not the other be edited ? It seems /etc/nfs.conf has more in it, but both have ...
0
votes
1answer
27 views

-bash: vdo: command not found in centos stream 9

After installing vdo and kmod-kvdo via dnf, the vdo command doesn't work. Systemctl doesn't recognize vdo.service as well. Vdo version: 8.1.0.316 Vdo release: 1.el9.1 I looked everywhere for a ...
0
votes
1answer
96 views

How to set static ip in CentOS Stream 9?

I installed a new version CentOS on my hypervisor and I saw that /etc/sysconfig/network-scripts/* doesn't exist. In 8 version I set for example bootproto=static and ipaddr=192.168.88.101. How correct ...
0
votes
0answers
37 views

Polkit rule to allow a user restart systemd service

I created /etc/polkit-1/rules.d/00-manage-docker-daemon.rules file with following rule to allow members of "agroup" to administer (stop/start/restart) docker.service (Centos 7): // Allow ...
0
votes
1answer
13 views

Centos 7 file system corrupted

I'm trying to restore my CentOS 7 virtual Machine as the file system got corrupted. This is the procedure I adopted for the same: Unmount the file system using umount /dev/mapper/centos00-root Tried ...
2
votes
1answer
24 views

Install -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso8859-1 on CentOS 7, Linux

I am using software called SEISAN. It's earthquake analysis software. When I want to see the plot of waveforms I give the error "unable to get the font". The software is installed on a ...
0
votes
1answer
23 views

iptables accept from specific ips slows down SSH and web

I used ranges of IP address to block other countries, when I use SSH or some of my web services it slows down, if I remove the rules and put everything back to normal it works normally, any ideas?
2
votes
0answers
19 views

LVM Write Stalls When Cache Fills

I'm currently encountering a very perplexing issue with my media server. I have an LV set up with a few disks, and that LV has a write cache attached to it. When the cache isn't full, it works ...
0
votes
0answers
17 views

No longer able to enable my network interface in Centos 8

Environment Operating System: CentOS Linux 8 Virtual Machine running on VMWare Workstation 16 Pro on Windows 11 host. Question I recently had an application lockup while using my VM and I had to power ...
1
vote
0answers
34 views

How to block all incoming connections except one country using firewalld or iptables [duplicate]

I found country IP list: https://www.ip2location.com/free/visitor-blocker I tried to drop all then add the iptables from that list but it didn't work, can I get some help? Thanks.
1
vote
1answer
42 views

Is there an easy way to RE-install RHEL (or CentOS or Fedora) on existing install?

Is there any easy way to re-install / re-build a "clean" Linux installation on top of existing partitions, etc? In other words, I'm happy with the partitions, the file system, the existing ...
2
votes
1answer
68 views

SLOW Wired Speed on Linux, FULL Wire Speed on Windows - 10Gbe

I have 2 Dell Servers. 1 is an R720 and the other an R730. They both have quad port daughter cards supported by Dell. Both cards are RJ45 only and have (2) 10Gbe + (2) 1Gbe ports. 1 Card is an Intel ...
0
votes
0answers
57 views

dmesg + how to exclude warning messages from dmesg in order to see the completely kernel messages

on our rhel 7.2 server we can see that all lines from dmesg are looks like this uname -r 3.10.0-327.el7.x86_64 [26202771.781769] ACPI Error: SMBus/IPMI/GenericSerialBus write requires Buffer of ...
0
votes
0answers
15 views

Centos 8 kvm bridged guest (OS type hvm) can only communicate with host

A little stumped with my kvm host, especially since I setup the exact same situation on a different host and it works well. I have a proxmox Centos 8 vm that I've had to setup as a kvm host, with a ...
0
votes
0answers
21 views

Can't Install libffi-devel in centos 7

yum install libffi-devel is not working in centos 7 OS. I have a chatbot application(python3) in the centos 7 server which requires many libraries to be installed. At some point i faced the following ...
0
votes
0answers
14 views

Messed up the disk with LVM - cannot boot Centos 7

I had a VM with /boot on sda1 and lvm group on sda2. I've resized the disk and tried to resize the LVM to gain some space for the /var directory. I tried to use the disks utility and create a ...
0
votes
1answer
41 views

Linux Shell Scripting for reading multiple files and running them

I am using a centos cluster in which I am running LAMMPS software for simulations. Now I have to run multiple files in a folder now each file has a similar type of subfiles i.e they contain 3 files 1. ...
0
votes
1answer
263 views

Upgraded Postfix and now seeing "discarding EHLO keywords: CHUNKING" in maillog

Upgraded Postfix to 3.5.8-2.el8 on RHEL 8.5 and started seeing below in /var/log/maillog: postfix/smtpd[7575]: discarding EHLO keywords: CHUNKING Reviewed main.cf and master.cf but can't see any ...
0
votes
2answers
24 views

How to permanent route in Redhat Linux 6.4

I tried route add -net 192.168.3.115 netmask 255.255.255.0 gw 192.168.3.1 but it was not working after reboot , can someone tell me how it works after reboot.
0
votes
1answer
53 views

Centos 7.9 ssh connection failure from macbook

Ssh connection failure from macbook. This stopped working after trying to migrate to Centos 8 MacBook-Pro:~ $ ssh -Y -vvv xxxxxxx@152.3.36.72 -p 32 OpenSSH_8.6p1, LibreSSL 2.8.3 debug1: Reading ...
0
votes
2answers
35 views

How to move a Linux installation to newer hardware?

I have an existing home server installed with CentOS 7, running on hardware and an SSD that is getting quite old. The system is Intel based: Core i7 4770K @ 3.5 GHz 16 GB Corsair Vengeance DDR3 RAM ...
1
vote
1answer
31 views

Failed to Switch User?

On machine A and B (both running CentOS 7), I have: # cat /etc/sudoers.d/custom userA ALL=(userB:userB) NOPASSWD:ALL However, on machine A, when I run [userA] $ sudo -ui userB sudo: unknown user: i ...
0
votes
0answers
24 views

Error while compiling GMT(generic mapping tool on centos7) with GDAL

I am having the following error while compiling GMT with GDAL and I am unable to figure out the root cause of it. GDAL has been compiled from the source (following this link). Dependencies too has ...
-1
votes
2answers
50 views

Script for counting and summarising Numbers & Unique numbers in each line

timestamp : IDs returned 20160420084726:- 20160420085418:[111783178, 111557953, 111646835, 111413356, 111412662, 105618372, 111413557] 20160420085418:[111413432, 111633904, 111783198, 111792767, ...
1
vote
2answers
43 views

Centos 9 missing groups or modules: nodejs

I want to ask question about installing nodejs but probably I had a problem with the repo. I ran command dnf module list nodejs but I got some error messages: Last metadata expiration check: 0:15:21 ...
0
votes
1answer
37 views

How to downgrade curl on CentOS8?

How to downgrade curl on CentOS8? I want downgrade curl: 7.61.1 => 7.29.0 I tried: yum downgrade curl but no packages marked for downgrade. Last metadata expiration check: 0:15:47 ago on Mon 20 ...

1
2 3 4 5
158