CentOS is an Enterprise-class Linux Distribution derived from Redhat Enterprise Linux sources freely provided to the public.

learn more… | top users | synonyms (2)

1
vote
2answers
1k views

How can I Forward a subDomain to a specific port?

My apologies if this has been asked before. I haven't found an adequate solution so... yeah. When a specific domain, "example.com" is accessed, I want it to act normally. In other words, it should go ...
1
vote
1answer
359 views

How to remotely control a CentOS 5.4 install

I need to support a legacy system that's running CentOS 5.4. There are errors coming up during the install and walking through the admin on the other end is quite tedious and inefficient. Does ...
3
votes
1answer
466 views

SELinux outbound access to other sites with restrictions

We have CentOS 6 configured with SELinux to host a number of websites. Unfortunately SELinux is preventing websites from accessing (outbound) sites, such as download.wordpress.com to update ...
5
votes
1answer
16k views

apache2 Invalid command 'SSLEngine'

Running: CentOS6 x64 When I restart httpd, I get the following error. What am I missing? [root@localhost ~]# service httpd restart Stopping httpd: [ OK ...
4
votes
3answers
5k views

Trouble booting server from GRUB prompt

I just installed CentOS 6.2 on my server but it keeps going to the GRUB prompt. I've never used Grub before but did some digging online. Looks like I have to run the kernel command before I can boot ...
7
votes
1answer
842 views

Why isn't the ls command listing huge filesizes?

In my Redhat Linux, I am getting the following error when executing the ls command. # ls ls: sugar.sql: Value too large for defined data type
6
votes
2answers
380 views

Mysterious write IO

I am just reviewing the disk IO of a XEN VM server. I stumbled across a DomU that has constant write traffic. To narrow that traffic further down I logged in to the DomU (CentOS 5, 64 Bit) and ...
2
votes
0answers
306 views

Odd Inode/Ram cache drops happening in CentOS

I run a CentOS 5.7 machine (64bit) with 24GB ram and 4x SAS drives in RAID10 setup. This machine runs nginx/1.0.10, php-fpm & xcache. About a month back the RAM usage of this machine has changed. ...
4
votes
3answers
957 views

No font in emacs on CentOS

When I open emacs over an SSH connection I get this error Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string ...
5
votes
3answers
460 views

Distro for a startup?

We run a small start-up in the SaaS industry. About half of our current staff are developers using their own laptops with various Linux distros (Ubuntu, Debian, Fedora) with a few exceptions of ...
1
vote
3answers
377 views

antispam techniques in postfix on linux

We have an issue of incoming spam on the server hosting several domains. Its running postfix on CentOS 5.x. Please suggest the techniques that can be enabled on the server to prevent incoming spam.
3
votes
3answers
1k views

Trying to update php on CentOS 5.7

Apologies in advance - I'm not a good Linux user by any stretch of the imagination. I have a CentOS 5.7 dedicated server on which I host a few websites. I currently have php 5.2.10 installed, but ...
2
votes
1answer
638 views

Will the Firewall GUI in CentOS overwrite changes implemented by IPTABLES manual edits?

I would like to restrict access to the SSH port of a new CentOS 6.2 server to select IP addresses but the Firewall GUI utility seems to be an all-or-nothing scenario. Either the port is firewalled or ...
3
votes
2answers
2k views

How to permamently disable SELinux?

We run a site with big traffic surges and, because of that, SELinux usually thinks that the traffic is a SYN flood attack. We have this same problem on many different CentOS servers. Despite ...
1
vote
1answer
451 views

portsentry and IPTables on constant reboot, but not sure why

I have been doing some hardening on a new server [ centos 5.7 final ] i also have logwatch and seem to be getting these strange logs Commands Run: User root: /sbin/service portsentry restart ...
3
votes
1answer
1k views

Trouble booting CentOS

I switched from an Ubuntu to the CentOS yesterday. But it seems I have messed my installation somehow, since OS will only start correctly if the USB with the installation is plugged in. Long story: ...
4
votes
2answers
32k views

pdksh missing from RHEL 6 and CentOS 6?

The package pdksh does not exist on RHEL 6 or CentOS 6 when I try to install it through yum. So my questions: Why is it no longer available in the default repositories? It is available in version ...
1
vote
1answer
696 views

How to configure mounted FTP connection

I'm using latest CentOS with Gnome, and using bookmarked FTP connection, that connects to my server, and mounts remote directory. The thing is, I see no way to configure that FTP client, whatever that ...
12
votes
10answers
61k views

How to install CentOS 6 via USB mass storage device?

I want to install CentOS 6.2 on a laptop (Thinkpad R40) which comes without CD/DVD-drive but with USB 2.0 ports. It seems that CentOS does not provide ready-to-use dd-able USB images for ...
2
votes
1answer
1k views

iSCSI and runaway log file

I have a OpenVZ VPS running CentOS 5.7 that I've been using to get some sysadmin experience. I found a log file called brcm-iscsi.log in /var/log and it's getting big (140 MB). INFO [Sun Dec 18 ...
1
vote
1answer
107 views

DRBD8 and GFS on CentOS5

I am trying to combine DRBD8 and GFS2 on CentOS5. Is there any possibility to do this without using a mulicast-cluster underneath? (CentOS seems to use AIS) This is a two-node-cluster, so a simple ...
0
votes
0answers
371 views

How to backup and restore Oracle 10G Express in Linux VPS?

I have installed Oracle 10g Express in two Centos VPS server. How can I generate an Oracle backup from server one, so that I can restore the database on server two? Can anyone help on this?
2
votes
1answer
1k views

Altering the default boot option on CentOS

I recently installed a copy of CentOS onto my main hard drive (I now have Windows 7 and CentOS). Whilst installing CentOS, I accidentally set it to be the main boot option, so when I start my PC I ...
2
votes
0answers
477 views

Redmine install on CentOS

I'm trying to install Redmine on CentOS 5 following the instructions on the Redmine wiki. I've gotten to the "Configure Apache to host the documents" step without errors. That links to another ...
8
votes
2answers
732 views

lsof - age of file

The *nix command lsof gives you a list of open files. Is anyone aware of a way that would also list how long a particular file has been open? Either by using lsof or any other command. I'm using ...
2
votes
2answers
649 views

Is there a way to completely disable outbound opportunistic TLS support in SendMail?

CentOS 5.x SendMail 8.14.4 An overzealous network security feature is causing TLS negotiations to fail when my Sendmail server tries to talk to external hosts. This is causing sendmail to constantly ...
8
votes
3answers
516 views

Using real time kernel headers to compile userspace code vs default headers

Per customer requirements, I installed CentOS 5.6 with the default kernel. With this kernel installed, the time.h file includes the #define CLOCK_MONOTONIC. Now, a real-time kernel was installed ...
0
votes
1answer
1k views

What's the default boot parameter for CentOS 6.2?

I forgot to install a boot loader during LiveCD installation , since i've got other distribution resides in my system , i could add another entry into grub2 , but what's the default parameter for ...
3
votes
3answers
4k views

Blocking outgoing connects with iptables

I have a (non production) machine where external supporters have shell-access (non-root). I want to prevent them from going further on into our network from that machine using iptables. The "normal" ...
1
vote
1answer
2k views

How to install Empathy on CentOS 6.0?

I'm a very new CentOS user. I came from Ubuntu. I need to install Empathy on my CentOS PC. Can anybody explain how to do that?
2
votes
1answer
919 views

Winscp giving error for delete, move etc

I can login via winscp to my server I can move around the folder but when I try to delete or even download or upload files it keep showing me this error. General failure (server should provide error ...
6
votes
2answers
2k views

Enabling system management privileges for non-local users - How the heck does `polkit` work, anyways?

I am managing a CentOS 6.2 server remotely using X over SSH (actually NX, but that's just a proxy). The Everything is working correctly, except when I try to do tasks that would normally require ...
0
votes
1answer
493 views

How to change or create Lvm partition in Centos after install OS in shell

How to change or create Lvm partition in Centos dedicate server after install OS in shell?
2
votes
2answers
4k views

How to send the email which is sleeping in my queue list?

When i send email it sleep in my queue list. How can i send them out? (Fedora 15 distro). # mailq /var/spool/mqueue (2 requests) -----Q-ID----- --Size-- -----Q-Time----- ...
2
votes
2answers
2k views

ldconfig issue with non-standard lib directory in CentOS

I am working with a virtual machine (CentOS 5.3) that has very little storage space on the main drive (which includes /usr, /usr/local, etc). Most of the storage space is available on a separate drive ...
35
votes
9answers
52k views

Is CentOS exactly the same as RHEL?

I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points. I am well ...
6
votes
2answers
2k views

Giving some users only SSH and shell access with limited resource usage

I'm trying to make a user that can access my server through SSH and allow it to have a shell, limited to using only, say screen and irssi. And it shouldn't it be able to see other directories except ...
4
votes
2answers
8k views

CentOS yum repository bad Header V4 RSA/SHA1 signature

I was coping with many problems to get stuck with this one. I have installed yum repository on server (CentOS 5.6) with: createrepo -v -s sha yumrepo/ sha is used due to solution to my earlier ...
1
vote
1answer
1k views

How do I install the nagios NRPE plugin on CentOS 5 using yum?

How do I install the nagios NRPE plugin on CentOS 5 using yum? I've tried yum install nagios-plugins but it's only downloading a fraction of a megabyte. Then if I do a search for one of the commands ...
3
votes
1answer
974 views

Limit process resource consumption in CentOS 5 (2.6.18 kernel)

I would like to limit the resource (CPU, Memory, and network bandwidth) consumption of processes on the same server. And it will be good if I can migrate processes from one server to another. I ...
1
vote
1answer
315 views

file missing from Desktop screen but can be seen using “ls” under the Desktop directory

I downloaded some files onto desktop. After typing ls under the Desktop directory, I can see these files. However, I cannot see the icons on my desktop corresponding to the files I see with ls. I use ...
-1
votes
1answer
650 views

Allowing access to single folder in centos

I have a java application in /usr/local that keeps writing to a text file on a daily basis. I need a particular user to be able to read this file. What is the best way to do that? I have recently read ...
5
votes
2answers
3k views

How to run a C program as a daemon?

I have a C program which I want to run as a daemon. How do I install it so it will run as a daemon on CentOS? Someone said to use @reboot, and some said to put it in /etc/rc.d/rc.local. Which is the ...
3
votes
3answers
10k views

How to auto type password for SCP or SFTP to automate it?

I have script where I put scp command to backup file to other server. But when it runs it asking to type password. Is there way to automate this? I am using CentOS 5.6. I have seen few guides they use ...
4
votes
1answer
8k views

Setting up X server on Centos6 minimal

I'm trying to install Centos6, but as it turned out, DVD I downloaded was just couple Mb too large (CentOS-6.0-i386-bin-DVD.iso) for DVD to carry. So, to save time and don't download DVD again, I ...
1
vote
1answer
363 views

Broken PATH in CentOS 5.x

I am having troubles with typing commands within the terminal on some of our CentOS servers. For example, I have to include the complete and full path to the command (i.e. /sbin/chkconfig vs. ...
2
votes
1answer
660 views

How do you add a package (or a mirror?) if the .rpm you're looking for isn't available in your VM build of CentOS?

I have yum and rpm, and I really only know how to install packages using these commands. When I tried to yum install figlet on a new CentOS6 virtual machine it couldn't find it in the mirrors list. I ...
3
votes
1answer
868 views

Lock file from being edited or deleted

I have CentOS and cPanel installed. I want to lock certain files (e.g. .ftpquota) from being deleted through FTP. I tried to change the ownership to root:root or root:lock but it didn't work; neither ...
2
votes
4answers
3k views

Can't Install/Update packages on newly installed CentOS

I installed CentOS6 and it is the first time. I tried to install/update packages. But I coudn't. Here is the output and it doesn't stop. How can I solve this? [root@localhost suranga]# yum update ...
0
votes
1answer
532 views

Retrieve URL content and follow redirects

I want to visit an URL in CentOS and then automatically follow the redirects. So, for example: Visit http://domain.com This will redirect my by a `header()` to another webpage, so automatically ...