Questions tagged [centos7]

CentOS is a Linux distribution standing for "Community ENTerprise Operating System" and is a rebuild of "Red Hat Enterprise Linux" (RHEL), belonging to the same company that distributes RHEL (Red Hat, Inc.). The "CentOS7" tag refers to versions 7.x-xxxx of CentOS, working only on 64-bit hardware. Maintenance updates for CentOS/RHEL 7 will stop on June 30, 2024, with full updates ceasing in winter of 2019.

2960 questions
8
votes
3 answers

How to ensure sshd is the last service to be stopped during shutdown?

I have noticed that when I issue a reboot command, my SSH connection is immediately closed on CentOS 7. It does not mean the server has rebooted, as I can still ping it. It seems systemd is killing sshd too early. Sometimes a service will get stuck…
gtirloni
  • 5,746
  • 3
  • 25
  • 52
8
votes
5 answers

centOS 7 firewallD remove direct rule

After upgrading the system from 6.5 to 7, I started learning implementing dynamic firewall, however, I made a mistake to add the following rule firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 1 -j DROP which cause the machine…
Mark
  • 564
  • 1
  • 4
  • 11
8
votes
2 answers

recommended way to configure a centos-7 network interface with static settings via ansible

I'm new to ansible and a little googling hasn't lead me quickly towards the right solution to my question. What's the 'with the grain' way to assign static network settings to a centos-7 host with ansible. I feel like this must be a pretty common…
Ben
  • 391
  • 1
  • 3
  • 11
8
votes
4 answers

CentOS 7 is not setting my gateway from DHCP

I have a Minimal Install of CentOS 7. I have disabled the Network Manager as I want to setup my network the "old school" way. systemctl stop NetworkManager systemctl disable NetworkManager chkconfig network on service network restart My network…
Daniele Testa
  • 661
  • 4
  • 10
  • 18
8
votes
1 answer

Nodejs Nginx error: (13: Permission denied) while connecting to upstream

I'm trying to run multiple Nodejs applications on Nginx server running on CentOS 7. I noticed that when I run a Nodejs app on some ports I get an 502 Bad Gateway error in the browser so I checked the error logs: [notice] 12806#0: signal process…
user1
  • 181
  • 1
  • 1
  • 3
8
votes
3 answers

CentOS 7 and Hyper-V

I'm trying to install CentOS 7 using Hyper-V and it's failing with the following error message: tsc: Fast TSC calibration failed PCI: Fatal: No config space access function found i8042: No controller found [long waiting…
gtirloni
  • 5,746
  • 3
  • 25
  • 52
8
votes
4 answers

How can I run a shell as a user that has no shell access?

Maybe I'm not using the right terms so allow me to explain myself using an example. Connecting over SSH as user "centos" and executing cat /etc/passwd in my Centos7 machine I get: centos:x:1000:1000:Cloud…
DomingoSL
  • 365
  • 1
  • 4
  • 13
8
votes
2 answers

Postfix error, SASL authentication failed; cannot authenticate to server, no mechanism available

I would like to set up postfix relay to my website hosting SMTP server, from my home server. It's Centos 7, set up using dynamic IP and dynamic DNS. Because of limited space in my hosting site, I would like to host my own mailbox, while still using…
Firman Azis Rauf
  • 83
  • 1
  • 1
  • 4
7
votes
4 answers

Why can a port can be accessible from outside although it is not in firewall open ports on centos 7?

I have a remote vps working with CentOS 7, related firewalld info is as below, firewalld is running actively. [root@doer mydir]# firewall-cmd --get-zone-of-interface=eth0 no zone [root@ doer mydir]# firewall-cmd --list-ports You're performing an…
lily
  • 185
  • 2
  • 7
7
votes
1 answer

How to add hot spare to software RAID1?

I have a CentOS 7 server. It is running a software RAID 1 mirroring three disks. I want to add a 4th disk to act as a hot spare. My intention is that in the event of a failure of one of the three disks being mirrored that the hot spare would…
Edward_178118
  • 955
  • 4
  • 15
  • 33
7
votes
6 answers

`Unregistered Authentication Agent for unix-process` when I restart Apache each time?

My server is centos 7.4 with Apache 2.4.6. Each time when I systemctl restart httpd,2 messages will added to /var/log/secure.Looks like : Jan 19 8:23:48 localhost polkitd[493]: Registered Authentication Agent for unix-process:5739:174943 (system…
kittygirl
  • 945
  • 5
  • 13
  • 33
7
votes
1 answer

Using fail2ban to manually block an ip for a specific time period

I'm noticing that brute force password crackers are becoming more sophisticated, learning the rate at which their IPs get banned, and slowing their intrusion attempts so as to not be caught by fail2ban. I'd like a way to be able to manually add…
Trent Three
  • 179
  • 1
  • 1
  • 2
7
votes
6 answers

Multilib version problems on CentOs 7

When I try to update YUM with sudo yum update --exclude=kernel*,python* --skip-broken, I get Multilib version problems found. Protected multilib-versions: systemd-libs-219-30.el7_3.7.x86_64!=systemd-libs-219-30.el7_3.6.i686. How can I solve this? I…
Jeroen Steen
  • 237
  • 1
  • 3
  • 11
7
votes
3 answers

CentOS 7 MariaDB Error "Failed to start mariadb.service: Unit not found."

I am somewhat new to Linux, testing various LAMP setups in Virtualbox on Windows. Currently I have a Centos 7 VM that I am trying to install MariaDB on. I am following instructions here: http://www.tecmint.com/install-lamp-in-centos-7 I ran # yum…
B-and-P
  • 229
  • 1
  • 2
  • 8
7
votes
1 answer

issues configuring firewall rules for Postgres on Centos

I am attempting to follow this guide to allow remote connections to postgres http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html At the moment I am running into issues with the firewall. I have it setup so I have a /tmp/v4…
Jon Heckman
  • 73
  • 1
  • 2
  • 6