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.

0
votes
1answer
24 views

Nginx: lag when loading static content

I have a sphinx doc with Read the docs theme on Nginx. Something like that: location ^~ /docs { alias /path/to/docs/build/html/; index index.html; gzip on; } There is a microlag when ...
0
votes
0answers
53 views

Serial ports sometimes having problems

I am using Centos 7, with kernel version 3.10.0-862.2.3.el7.x86_64. I was able to use all the 4 serial ports normally (RS485) and I do not usually touch the computer since it is just collecting data. ...
-1
votes
1answer
52 views

my server will damage if i delete this infected files?

some spam scripts in my server (it send thousands of mails/hr) i did scan to my server CentOS7 + Virtualmin using clamav , and this is the reuslts : /home/joudakpk/homes/info/Maildir/cur/1555410522....
0
votes
1answer
120 views

System boots into Dracut mode in CentOS 7

Recently tried booting up my server but i get the following error. It seems that initramfs is not able to generate and i tried to boot into rescue mode and found that fstab file was empty. Updated the ...
0
votes
1answer
51 views

Why would a file have NO color code? [duplicate]

Two files in one of my directories are rendered as gray on PuTTy. Running ls -l --color=always | less shows a list with most file names preceded by ESC[01;32m But those two files do not. The ...
0
votes
0answers
20 views

Enable NetworkManager for Ethernet interface in Kickstart

i want to enabled NM_CONTROLLED=yes in /etc/sysconfig/network-scripts/ifcfg-eth0 from my kickstart file, my current line is like network --hostname=xdw.my.local --bootproto=static --ip=x.x.x.x --...
0
votes
0answers
25 views

Centos 7.6 onscreen keyboard is not shown for all applications

I am using below Centos 7.6 on my Thinkpad T420 laptop saravanakumar@localhost ~]$ uname -a Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 ...
0
votes
2answers
72 views

Can't start VM with PXE “write error: no space left on device” and end up in dracut environment

I'm setting up a PXE server to automate deployment of KVM guests. KVM hypervisor host: Fedora 29 KVM guests: Centos 7 During the installation I face a problem /sbin/dmsquash-live-root: write error: ...
0
votes
1answer
60 views

I've been seeing a lot of this in my Apache access log

14.210.192.182 - - [01/May/2019:04:43:14 -0500] "GET /user.php?act=login HTTP/1.1" 302 233 "554fcae493e564ee0dc75bdf2ebf94caads|a:2:{s:3:\"num\";s:288:\"*/ union select 1,0x272f2a,3,4,5,6,7,8,...
0
votes
2answers
23 views

Centos live install yum

I am booting from a centos 7 live usb. I am trying to mount an NTFS filesystem, however in missing the ntfs-3g package. Attempts to use yum give an error suggesting yum is not installed - the python ...
0
votes
0answers
48 views

install docker package on CentOS with kickstart and offline rpms

I am preparing a Custom CentOS 7 iso which will include kickstart and docker packages; I tried the below steps to make docker get installed with the installation of CentOS I downloaded docker with ...
0
votes
0answers
18 views

Error after extending a disk partition on CentOS 7

I went through this article https://www.ryadel.com/en/resize-extend-disk-partition-unallocated-disk-space-linux-centos-rhel-ubuntu-debian/#comment-1516 to extend space of a partition /dev/sda2, but ...
1
vote
1answer
90 views

Failed to start Apache Server after configuring Client Authentication

CentOS 7 | Apache 2.4.6 I have built a private Certificate Authority (CA) and two certificates (one for the server and one for a client). Then, I configured the Apache to use the certificate X.509 ...
0
votes
2answers
44 views

Can not mount the parted sdb1 to the directory

I added a sdb disk, and there is a sdb1 on it: [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk ├─sda1 8:1 ...
1
vote
0answers
20 views

Apache doesn't work on port diffrent than standart on Centos 7/OpenVZ container

I tried to change the default Apache port on the Centos 7 OpenVZ container, but it just didn't work. curl **.**.**.**:8080 curl: (7) Failed to connect to **.**.**.** port 8080: No route to host But ...
0
votes
0answers
17 views

Mount cifs Network Drive: dynamic permissions?

I have a mount from Linux to a windows network drive that works great. Except for one thing: every 90 days my password changes and I have to go in and recreate the mount like so: sudo mount -t cifs \ ...
1
vote
0answers
16 views

Conditionally run command in init.d service script stop() on shutdown/reboot in CentOS6

I have a service script in CentOS 6.10 that needs to touch a file when service myservice stop is called by the user or process, but not when stop() in the script is invoked by shutdown or reboot by ...
0
votes
1answer
148 views

Cannot downgrade from CentOS 7.6 to 7.5

I am trying to downgrade my CentOS 7.6 to the previous minor release 7.5. I am currently on kernel version 3.10.0-957.10.1.el7.x86_64. For the downgrade I need to install kernel version 3.10.0-862 (7....
0
votes
0answers
27 views

issues in Setting Up Zimbra Collaboration Suite (ZCS) on RHEL/CentOS 7/6

tried installing zimbra on linux and i get this at a stage of the installation ERROR: Installation can not proceeed. Please fix your /etc/hosts file to contain: 127.0.0.1 localhost.localdomain ...
1
vote
0answers
24 views

dockerfile to append multi-lines config file

I have a dockerfile and can't seem to be able to embed the nginx configuration file to it, so that it can be appended to /etc/nginx/nginx.conf. I tried the following formats: RUN cat <<EOT >...
0
votes
1answer
17 views

ntpd.pid not getting generated even when ntpd is running in centos7

I have recently upgraded to centos7. I could observe that ntpd.pid is not generated when the ntpd service is started. Earlier, in centos 6, when we start the ntpd service the file ntpd.pid is ...
1
vote
0answers
32 views

USB 3 Bus, Where is it? [closed]

I have a Shuttle mini pc that I use as a server running CentOS 7. I recently acquired a Drobo 5D which is capable of USB 3. I plugged the drobo into the blue USB port in the back of the system. But ...
0
votes
1answer
92 views

Available options for real-time Linux (Centos 7) and their relation to one another [closed]

I'm looking to expand and also get more current information from the question asked here. I have a requirement for real-time behavior that has is sub-millisecond and am now exploring what my options ...
0
votes
1answer
93 views

Logrotate is not rotating automatically, but it's working with logrotate -d and logrotate -f

Logrotate is not rotating automatically, but it's working with logrotate -d and logrotate -f with no errors showing. But it's not running automatically each day. Below is the logrotate -d output. ...
1
vote
1answer
53 views

IP A can ping IP B, But IP B can't ping IP A on centos with two network interfaces

I am trying to get copied packets from machine A to machine B. When I ping machine B from machine A, I get a ping response. When I ping machine A from machine B, I don't get a response. Machine A has ...
-1
votes
1answer
48 views

Is there a similar tool like Curl but is already included in Linux?

I'm not sure if there is a similar command/utility which comes along with Linux distro CentOs, Ubuntu and RedHat without installing Curl. Basically I'd like to do a command like below curl -H ...
0
votes
0answers
34 views

CentOS 7 - Rsyslog error7

My syslog server does not write messages correctly, traffic capture shows me 100 events, but the file in /var/log/xxx.log only 50 or 60 Have rsyslogd 7.4.7, compiled with: FEATURE_REGEXP: ...
0
votes
1answer
93 views

CentOS 7: When building Mapnik, the configure step does not find optional dependencies like libpng-devel, libjpeg-devel, etc

I am trying to build/install Mapnik (3.0.10) on a CentOS 7 system and I am having trouble getting all the dependencies in place and recognized. I have installed gcc/g++ compiler from the gcc6 series ...
4
votes
2answers
242 views

How to set up OpenVPN and Transmission to start at boot on CentOS 6?

I'm trying to set up Transmission with OpenVPN on a headless server running a minimal install of CentOS 6.10, and ideally these would start when I boot the system. I'm able to get everything to run ...
0
votes
2answers
88 views

How to run systemctl command inside ExecStart?

I am trying to restart all the stale sqlrelay connection services using systemd.timer. Systemd service looks like this: [Unit] Description=sqlrelay-state-connection-restart [Service] Type=oneshot ...
0
votes
0answers
14 views

PPTP server how to add shared secret key

I have configured simple PPTP software on Centos. It is connecting perfectly with other Centos client. As it is required by my client, I knew it is un-secure but due to specific requirement I setup it....
0
votes
0answers
20 views

How to setup password history using authconfig?

I've been setting up a password policy and have used authconfig like so: authconfig --passminlen=15 --update However I can't see a way to set password history without manually changing the conf ...
0
votes
1answer
47 views

Linux CentOS: run rc.local after boot

I am running a CentOS (Red Hat Enterprise Linux Server release 7.6 (Maipo)) instance on AWS. I need to add to my boot sequence execution of a rc.local script. How can I do that? I have looked in /ect/...
0
votes
0answers
47 views

why connection refused by host(centos)

There is redis service running on centos 7.6 it looks fine there,(192.168.0.24:6379) I try to connect this client from another machine in same network(192.168.0.22) There is incoming request from ...
1
vote
0answers
18 views

“BIOS update requires USB to be enabled” workaround?

I'm trying to update BIOS on one my machines. The system was configured to with USB disabled, and I'm not allowed to change that now. So when I run the BIN file on my CentOS 7 machine: [acoder@...
2
votes
0answers
35 views

How to forward all packets to another subnet?

I am trying to send a copy of all packets to another ip that is not the same subnet. Let's say I want to send a copy of all traffic from 10.0.1.100 to 10.0.2.100. I have another IP, 10.0.1.101 that ...
0
votes
1answer
36 views

installed redis but can't see it in nmap's scan

Redis installed and looks to be running: [me@hsredistest01 ~]$ sudo systemctl status redis ● redis.service - Redis persistent key-value database Loaded: loaded (/usr/lib/systemd/system/redis....
3
votes
0answers
40 views

How to deny crontab to group

I'm trying to deny crontab to group but I had no success so far. Nor I saw how to do it, or even discussions about it. Is it possible to deny crontab to groups instead of users? Imagine if you have ...
0
votes
1answer
144 views

failed to start postfix.service: Unit not found

I just got my own VPS with CentOS 7, and I'm trying to install GitLab on it. I'm following the instructions listed here. My problem is the command systemctl start postfix. I did the yum install ...
0
votes
1answer
60 views

Samba Shared Folder with Windows Clients

I have a shared Folder with Samba running on a CentOS Machine. The folder is called "proyect", and it must be accessed only for the users that belong to the group of the same name with windows clients ...
0
votes
1answer
51 views

sed command working only when no outfile is written

I'd like to change this file eq.txt 2018-05-03T18:46:05.050Z 11.8314 44.0586 10 4.3 USGS 2018-05-01T05:16:59.270Z 11.0366 43.2334 10 4.1 USGS 2018-04-26T11:13:20.590Z -5.4109 36.5557 10 4 USGS 2018-...
0
votes
0answers
16 views

Linux cgroup memory is not beeing freed

I have an k8s cluster and one of the pods is crashing because of OOM. It has the limit of 400MB but crashing when pod reaches 30MB and I have no idea why. There is no other process in its cgroup but ...
0
votes
2answers
48 views

firewall not working as expected in kickstart

I have following line in kickstart for firewall firewall --enabled --service=ssh,glusterfs,tftp,ntp I am expecting tftp server should be accessible from other system, but it was only accessible from ...
1
vote
1answer
42 views

Starting wpa_supplicant via script in systemd not working properly

I've written a script to manually start the wpa_supplicant function on a Fedora/Centos7 machine with a wireless NIC. Due to static routing issues, I cannot use NetworkManager (nor do I want do with ...
1
vote
0answers
24 views

setroubleshootd showing ~100% CPU utilization

One of my centos7 machines shows setroubleshootd running at between 70-100% CPU utilization. I tried to temporarily disable SELinux with setenforce 0, just so I could use sealert to read the audit....
0
votes
1answer
16 views

Trying to setup port redirection through 2nd gateway

I am trying to setup configuration where all connections to port 161 will go through another gateway (through openvpn) while others are going directly [localhost] -> [gateway] -> [remote] - OK [...
1
vote
0answers
28 views

Getting number of failed login attempts since last successfull

How can I reproduce this message, when we make an SSH connection: Last failed login: Sun Feb 19 03:52:25 There were 41 failed login attempts since the last successful login. I want to configure a ...
1
vote
0answers
33 views

su - <username> hangs if I added a line in /etc/bashrc

I added this line to /etc/bashrc file export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.14/lib I log in as root throw SSH normally, but if I wanted to change my user by su - myusername the ...
-1
votes
1answer
36 views

Copying files from Bootable USB to local Drive in %post script of kickstart

I have created bootable USB with custom folder in it, After installation i want to copy files from USB to local directory, Following is kickstart file %post section %post --nochroot --erroronfail --...
0
votes
0answers
20 views

Monitoring data flow to /dev/null for a given process

I have a process which reads out data from a custom PCI-e device using a custom driver. The program takes a file descriptor as an argument and writes the raw data to it. I would like to test the data ...