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
21
votes
9 answers

What permissions / ownership to set on PHP Sessions Folder when running FastCGI / PHP-FPM (as user "nobody")?

I'm having trouble getting a number of scripts running because PHP-FPM can't write to my session folder: "2009/10/01 23:54:07 [error] 17830#0: *24 FastCGI sent in stderr: "PHP Warning: Unknown:…
Professor Frink
  • 529
  • 4
  • 7
  • 15
21
votes
3 answers

useradd not encrypting passwords in /etc/shadow

I stumbled accross this problem when trying to create new FTP users for vsftpd. Upon creating a new user with the following command and attempting login with FileZilla, I would get an "incorrect password" error. useradd f -p pass -d /home/f -s…
BadToTheBone
  • 369
  • 1
  • 3
  • 9
21
votes
5 answers

How to rsync files / folders from a specific date forward?

I would like to rsync folders from a specific date and forward. for example. I want to rsync my folders that were created from 3 days ago (and of course 2 days ago, one day ago etc.). I know I need to use find and rsync but I'm not sure how. any…
edotan
  • 1,876
  • 13
  • 39
  • 57
21
votes
2 answers

jbd2/dm-0-8 consuming all I/O

What is jbd2/dm-0-8 and why It is consuming all my I/O usage and causing I/O wait? Is there anyway to disable this? Bonnie++ results: http://pastebin.com/iQCWP1qp $ sudo hdparm -t /dev/sda1 /dev/sda1: Timing buffered disk reads: 108 MB in 3.02…
Super Mario
  • 355
  • 1
  • 3
  • 7
21
votes
2 answers

What does the .autorelabel file do in Linux?

What does the .autorelabel file located at the file root / do in Linux? I know its something to do with SELinux but I can't find any information as to what it actually does. I am running CentOS 6. Thanks in advance.
21
votes
6 answers

certutil: function failed: security library: bad database

when I'm using certutil it returns this error: certutil: function failed: security library: bad database. e.g. I can't list certs or keys How Can I fix this?
Zim3r
  • 1,454
  • 5
  • 24
  • 45
21
votes
3 answers

Configure domain name in CentOS

How do I configure domain names in Cent OS? I am actually connecting to the servers via SSH remote terminal and I also have root credentials. Does configuring the /etc/sysconfig/network and /etc/hosts suffice? Would be great to have some steps or…
21
votes
2 answers

How do I view the contents of a SELinux policy package

As the title says, how do I view the contents of a SELinux policy package? The resulting files end with .pp. I'm running on centos 6, but I guess it's the same way on "all" distros. For example cp /usr/share/selinux/targeted/cobbler.pp.bz2 ~ …
Arlukin
  • 1,203
  • 6
  • 18
  • 27
20
votes
3 answers

How to determine cause of system crash?

My server crashes about once a week and does not leave any kind of clue as to what's causing it. I have checked /var/log/messages and it just stops recording at some point and starts at the computer post information when I perform a hard reboot. Is…
Nahydrin
  • 397
  • 2
  • 4
  • 9
20
votes
3 answers

Configuring SSL With Virtual Hosts under Apache and CentOS

I've got two websites being served from a CentOS instance. One of those has SSL enabled, the other is just served on port 80. So, http://siteone.com and https://siteone.com both work fine, as does http://sitetwo.com. The issue is that…
gtcaz
  • 303
  • 1
  • 2
  • 4
20
votes
1 answer

systemd: how do I view journals with journalctl without switching to root on CentOS 7?

If I run journalctl as nonroot, I would get the following message: No journal files were found. But switching to root, or using sudo gives me the journal. How can I view journals without switching to root (e.g. which group should I add myself in)?…
xuhdev
  • 890
  • 2
  • 8
  • 20
20
votes
1 answer

What cron job is /usr/lib/sa/sa1

I have logwatch enabled for my machine. Suddenly I see this line in my logwatch /usr/lib64/sa/sa1 1 1 : 4297 times /usr/lib64/sa/sa2 -A : 29 times run-part /etc/cron.hourly : 716 I tried crontab -e but I dont see any entries?
biz14
  • 381
  • 1
  • 3
  • 10
20
votes
5 answers

How to tell what version of puppet you are running on centos?

I'm getting started with puppet on centos and was confused about a few things. First off a man page exists for puppet-master but not for puppetmaster even though the daemon in /etc/init.d is puppetmaster Running the command $ puppet-master…
user784637
  • 1,542
  • 7
  • 35
  • 52
20
votes
1 answer

How to add user with SFTP/ FTP access to '/var/www/html/website_abc' folder on Amazon EC2 Centos?

Possible Duplicate: Linux directory permissions I'm working with some third-party developers and I would like to grant SFTP (or FTP) access to the root folder for a website they're working on i.e. '/var/www/html/website_abc' so that they could…
ericn
  • 553
  • 2
  • 8
  • 20
20
votes
4 answers

How do I find out the recent SSH logins for Centos and their IP address?

It seems someone logged into my dev server with root password and did a whole bunch of destruction. How do I check the recent logins and their IP address on Cent OS ? Thanks.
George Smith