Questions tagged [centos]

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat.

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat. CentOS aims to be 100% binary compatible with RedHat Enterprise Linux. CentOS mainly changes packages to remove upstream vendor branding and artwork.

Support & Lifecycle

Each CentOS version is maintained for up to 10 years and a new version is released approximately every 2 years.

+----------+-------------- +---------------+---------------------+
|  Version | Release date  |  Full updates | Maintenance updates |
+----------+---------------+---------------+---------------------+
| 3        | 19 March 2004 | 20 July 2006  |31 October 2010      |
| 4        | 9 March 2005  | 31 March 2009 |29 February 2012     |
| 5        | 12 April 2007 | Q1 2014       |31 March 2017        |
| 6        | 10 July 2011  | Q2 2017       |30 November 2020     |
| 7        | 7 July 2014   | Q4 2020       |30 June 2024         |
+----------+---------------+---------------+---------------------+

External Resources:

10670 questions
24
votes
2 answers

How to set systemd service dependencies?

During CentOS 7 system boot nginx start fails with the following error: 2014/08/04 17:27:34 [emerg] 790#0: bind() to a.b.c.d:443 failed (99: Cannot assign requested address) I suspect this is happening due to the network interfaces not being up yet…
user99559
24
votes
3 answers

CentOS 7 Firewall Configuration

In CentOS 6 I could type setup from the command line and I would be presented with a set of tools, one of them being Firewall configuration. I can still do this in CentOS 7, except the list no longer includes Firewall configuration as an…
ste
  • 381
  • 1
  • 3
  • 8
24
votes
2 answers

yum error in PREUN scriptlet when removing packages

Trying to uninstall zarafa mail server. I use yum list installed to view the already installed packages. After which I use yum erase zarafa* It picks up all the packages but returns: Error in PREUN scriptlet in rpm package zarafa-dagent Error in…
tread
  • 423
  • 2
  • 4
  • 21
24
votes
3 answers

Cent OS: How do I turn off or reduce memory overcommitment, and is it safe to do it?

From time to time "my" server stalls because it runs out of both memory and swap space. (it keeps responding to ping but nothing more than that, not even ssh). I'm told linux does memory overcommitment, which as far as I understand is the same as…
matteo
  • 731
  • 2
  • 9
  • 21
24
votes
3 answers

When are scripts inside etc/profile.d executed?

I added some scripts from root inside etc/profile.d to execute at startup time. But when will these scripts be executed if I login into system as a non root user? I want to start LDAP-server at start-up time, independently from which user has first…
MyTitle
  • 551
  • 1
  • 8
  • 18
24
votes
9 answers

Linux: How to measure daily/montly network traffic?

I need to keep statistics of daily network traffic for a linux machine (CentOS 5). Is there a way to do it using standard/native tools or utilities? Or do I have to dowload special software for that? Thanks.
GetFree
  • 1,500
  • 7
  • 23
  • 37
23
votes
8 answers

How to make iptables rules expire?

Someone told me this is possible, but I can't find anything on google or man pages. I need to ban IPs for a certain amount of time, and then have them unbanned automatically.
HappyDeveloper
  • 325
  • 1
  • 3
  • 7
23
votes
7 answers

What is the most secure way to allow a user read access to a log file?

My application requires read access to /var/log/messages, which belongs to user and group root. What is the minimal exposure level required on /var/log/messages so my application can read it? Presently, my plan is to change the group ownership of…
gAMBOOKa
  • 999
  • 6
  • 19
  • 34
23
votes
9 answers

How to send email with my CentOS server?

I just built a modest home server using CentOS 5.5. I want the server to be able to send emails to my Gmail account or other email accounts for various things like cron jobs. Also it would be nice to be able to send email via PHP applications that I…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
22
votes
1 answer

Usermod -aG vs gpasswd -a as a best practice

I am aware that usermod -g is not best practice from many posts like this however they normally explain the usermod should not be used as it changes the primary group of a user. These posts don't seem to take into account the -aG switch which just…
ZZ9
  • 888
  • 3
  • 16
  • 47
22
votes
3 answers

Completely reset PostgreSQL to default?

Question Is there a way to completely reset a PostgreSQL installation on Linux, so it is in the same state as when I installed it? Idea I have considered rm -rf /var/lib/pgsql/* rm -rf /var/lib/pgsql/backups/* rm -rf /var/lib/pgsql/data/* but…
Jasmine Lognnes
  • 2,520
  • 8
  • 33
  • 51
22
votes
3 answers

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it's rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum Can this seamlessly replaces the current PHP…
Vicary
  • 333
  • 1
  • 2
  • 8
22
votes
3 answers

what is Centos 5's apache user/group

HI I know this is basic but can anyone tell me what the default user/group names are for apache 2 on centos 5/6 please. Google is just giving me junk.
Alex
  • 345
  • 1
  • 2
  • 9
22
votes
4 answers

Unable to remove user: "user is currently logged in"

When trying to remove the user, it returns "user is currently logged in". I already killed the user using pkill -KILL -u usernameHere and several other commands, but it does not help. How can I remove this user? Running CentOS 6.
Xen
  • 458
  • 1
  • 4
  • 16
22
votes
9 answers

Automatically check for Security Updates on CentOS or Scientific Linux?

We have machines running RedHat-based distros such as CentOS or Scientific Linux. We want the systems to automatically notify us if there are any known vulnerabilities to the installed packages. FreeBSD does this with the ports-mgmt/portaudit…
Stefan Lasiewski
  • 23,667
  • 41
  • 132
  • 186