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

learn more… | top users | synonyms

0
votes
1answer
55 views

Dell Poweredge 860 with CentOS eth0 link is down. Trying to configure a static IP

I decided to recycle an old server, Dell Poweredge 860 Service Tag: B21N5F1, that had vyatta (a what use to be open-source firewall os) firewall installed on it. I went ahead and did a clean install ...
2
votes
2answers
120 views

Hide list of MySQL databases [duplicate]

I'm trying to configure MySQL 5.1 on CentOS 6.6 in such a way that users will not be able to see databases to which they do not have any privileges. If they execute the command [SHOW DATABASES] it ...
0
votes
0answers
41 views

CentOS - how to chroot sftp and have mysql as shell

I have a user who I would like to have sftp access to one folder only (chrooted). Also he logs in with ssh, I would like him to only have access to mysql. I am able to chroot the users sftp (by ...
0
votes
1answer
48 views

Command fails during script execution in bash

I'm working on a bash script for automatize some common tasks but I'm having some issues and I need some help. This is the script I'm talking about: #!/usr/bin/env bash PS3='Please enter your ...
4
votes
1answer
192 views

SSL routines:SSL23_WRITE:ssl handshake failure, nginx on CentOS 7

First of all, what do I have: OpenSSL 1.0.1e-fips 11 Feb 2013 nginx version: nginx/1.6.2 CentOS Linux release 7.0.1406 (Core) and, for testing purposes, a self-signed certificate: openssl req ...
0
votes
3answers
58 views

How can I recover httpd.conf file? [closed]

I am using CENTos 6.6. I accidentally removed the httpd.conf file. Now, apache is running but if I restart it, It will crash. How can I recover httpd.conf file?
0
votes
1answer
30 views

accessing ip_conntrack causes concurrency problems after yum update

I have a Centos 5.11 server, and a script I cron every 10 minutes The script is simply this #!/bin/sh FNAME=/var/www/html/cached/conntrack_count COUNT=`cat /proc/net/ip_conntrack | /usr/bin/wc -l` ...
0
votes
1answer
79 views

syslog-ng error on CentOS, works fine on other distributions

I want to add to a CentOS box (EL6) the same syslog-ng (3.2.5 from EPEL) configuration I have on other (Debian based) machines. It is intended to add events log in JSON to a single file for further ...
0
votes
0answers
59 views

Does firewalld handle the common attack rules of iptables by default?

I'm in the process of migrating servers to CentOS 7 from 6.5 and the most major change appears to be the shift from iptables to firewalld. My prior experience with iptables tells me that there are a ...
0
votes
1answer
39 views

nfs mount passwordless login

Setup: OS : CentOS5 node 1 : 172.16.1.1 sandbox1.local node 2 : 172.16.1.2 sandbox2.local The nodes have the hostnames in the hots file. Pinging to each other works fine. Problem: My home is ...
2
votes
1answer
49 views

Skip user input when using anaconda with kickstart

When I boot up the first time it always requests user input, in the case of text mode it asks me to press B to continue the installation. I would like to provision the system with no user input. ...
0
votes
1answer
92 views

sudo and --ask-sudo-pass on CentOS 6.6

I'm running command: [kamil@server.com ]# ansible example.com -a "sudo id" --ask-sudo-pass sudo password: example.com | FAILED >> { "failed": true, "msg": "[sudo] password for kamil: ...
2
votes
1answer
50 views

Centos: script in init.d not controlling service as expected

We use nginx on centos 6, and the init.d script from here: https://gist.github.com/sairam/5892520/raw/b8195a71e944d46271c8a49f2717f70bcd04bf1a/etc-init.d-nginx It all "works" Nginx runs, etc. ...
0
votes
1answer
26 views

How to see routes for a specific Host

I have a project that requires me to send traffic out a specific Port on a Server the server has 7 Ethernet Ports . I have created the IP rules to send data from a certain host to a certain port. I ...
1
vote
2answers
475 views

Can't open /dev/xxx exclusively. Mounted filesystem. How to create volume groups and lvm on mounted disk?

I've 3 partitions sdb1 sdb2 and sdb3. I wanna to create a volume group and lvms in the sdb3 which is the mounted linux partition where is located my root folder. I'm typing: pvcreate /dev/sdb3 ...
0
votes
2answers
99 views

sendmail & sasl auth on CentOS 6

I'm moving a mail server from one CentOS 6 to another. I use sendmail with sasl pam authentication. When I try to send mail it fails because the user is not authenticated and the mail client does not ...
1
vote
2answers
34 views

Yum the same version as in a repository (automatic upgrades/downgrades)

In our infrastrcture, we have servers installed and managed by puppet. All our software is then installed from rpm. On each server is a small script that performs yum update if there is some change in ...
4
votes
1answer
226 views

Sendmail is not listening to any port

I am using VPS hosting with CentOS 6. I've installed Sendmail, but it's not listening to any port. I've checked, IPTables is disabled (or stopped I guess; service iptables status command returns ...
0
votes
0answers
37 views

Heatbeat is not assigning a virtual ip

I am trying to setup HA Cluster with Heartbeat on CentOS here is my configurations. $ cat /etc/ha.d/authkeys auth 2 2 sha1 test-ha $ cat /etc/ha.d/ha.cf logfile /var/log/ha-log ...
-1
votes
1answer
36 views

How to open a mysql port for 2 server connected in LAN

I have 2 servers connected togheter in LAN, and both on external network too. One eth0 and the other eth1 adapter. On both servers I've installed mysql. I'm able from both server to connect to their ...
1
vote
1answer
47 views

Issue command on multiple systems at once using MCollective

Aim The aim is to execute a command on multiple systems at once using MCollective, e.g., touch /tmp/helloworld using MCollective-client creates touch /tmp/helloworld on all MCollective-servers: ...
2
votes
1answer
163 views

SSH with DSA 2048 bits key

I need to set up secure connection through ssh keys, prerequisites are : DSA type number of bits : 2048 Passphrase : yes On my Linux I can't create this kind of key, the man says : DSA keys ...
-5
votes
1answer
29 views

How to turn on ls -l headers? [closed]

How do I turn on the labels for ls -l? -rw------- 1 root root 0 Jan 2 2014 php_logging.log The first is permissions but root root confuses me. One is the username of the owner ...
1
vote
2answers
96 views

Need to restart iptables after server shutdown

I have a server acting as host (KVM), proxy and firewall. In order to access the services provided by the virtual machines in this host, iptables must work in order to redirect the packets properly to ...
0
votes
2answers
65 views

CentOS Cannot resolve any hostnames

I am trying to set up a server(PHP/HTTPD) in CentOS. When I use ipaddress to access the website its working fine. But using domain name its not working. So I used ping command to check. ping ...
0
votes
1answer
248 views

OpenStack Cinder: iSCSI login negotiation failure after reboot

I have a Cinder storage and controller node running on the same CentOS 7 box as Nova compute. Everything worked fine, until I rebooted. Now my instances can't mount volumes and I get the errors below. ...
0
votes
0answers
15 views

CentOS Apache permission denied [duplicate]

I'm having very weird issues with a stock CentOS install with Apache not allowing me to view most files on the web site. I have /var/www/html with the following two files: -rw-r--r--. 1 root root ...
-1
votes
1answer
17 views

I'm making a user for a custom java server, what do I need to take into account setting up the user?

I'm new to this process, so bear with me please. The server is my own socket server, it parses data from connected clients and saves it to a database. It won't serve data in the form of web pages or ...
0
votes
0answers
42 views

Configuring Oracle Access Manager to use x509 authentication

Hello members of Serverfault, I am new to serverfault and my knowledge of Oracle Access Manager(OAM) and x509 authentication is minimal. I have attempted searching the rest of serverfault and have ...
2
votes
1answer
33 views

Cannot find solution to “One or more of your nameservers did not return any of your NS records.” on intoDNS site

I have set up DNS on my Linux Centos server and when I test on this site I get the following errors: WARNING: One or more of your nameservers did not return any of your NS records. ERROR: ...
0
votes
0answers
70 views

Gitlab update from 7.2.0 centos(mysql) to 7.7.2 ubuntu(postgres), can't create ssh key, or new project

I had a CentOS server running gitlab 7.2.0, which uses mysql server. I updated to the omnibus version of 7.7.2 successfully porting the database from mysql to postgres using instructions found here ...
0
votes
1answer
68 views

Installation of Netkit-Ng on CentOS

I want to install Netkit-ng on CentOS, I executed those commands : tar -xjSf netkit-ng-core-32-3.0.4.tar.bz2 tar -xjSf netkit-ng-filesystem-i386-F7.0-0.1.3.tar.bz2 tar -xjSf ...
1
vote
1answer
54 views

SELinux Permissive enabled; httpd error reporting

I kept getting the following notice in apache /var/log/messages and many others same messages : kernel: type=1400 audit(1422862414.790:3222): avc: denied { getattr } for pid=2484 comm="deliver" ...
-2
votes
1answer
113 views

How do I install lvextend on CentOS?

lvextend did not come installed on my CentOS image, how do I install it? # lvextend -bash: lvextend: command not found
-7
votes
1answer
58 views

Trying to understand linux script [closed]

I have this Linux script I found and I'm trying to understand it. Could someone please help me to understand it. The script if [ ! -d "/home/ftp/$PAM_USER" ]; then /bin/su - ftp -s /bin/sh -c ...
1
vote
1answer
53 views

How to set number of inodes during initial Centos 6 ext4 install?

There are similar questions, but nothing that was exactly on par with what I am inquiring. Completely fresh install of Centos 6, the server is setup with a BIOS RAID 1. I'm trying to set the number of ...
2
votes
1answer
100 views

Apache error - File name too long: Cannot map GET

I have PHP Laravel application installed on my CentOS VPS. It is backend for my mobile application that has been recently updated. Unfortunately I wrote some bad code that results in making request ...
0
votes
1answer
43 views

deploy physical server from vmware template (linux)

I've been looking at replacing several aging servers, and to that end, I've prepared a vmware template to act as a standardized base. However, it's now become a requirement that I be able to deploy ...
1
vote
1answer
69 views

SVN Commit Not Updating Files On Server

I have followed this guide http://wiki.centos.org/HowTos/Subversion and everything has worked as far as 5.3 (i can check out files). I had an existing directory "/var/www/file-manager". This ...
3
votes
1answer
69 views

Limit su attempts

Is there a way to limit the number of su attempts from a user? For example, malicious user gets into a user login that has su access. Repeatedly runs su to try to gain superuser access. This ...
0
votes
1answer
185 views

Centos 7 ERROR /etc/sysconfig/network-scripts/ifup-eth some other host already uses address x.x.x.x

I've just installed Centos 7 and I am trying to create vlans in this new setup. Since this is Centos 7, it uses ifcfg-ens3 instead of the eth0 device we're used to. So now I'm trying to create a ...
2
votes
0answers
51 views

Nginx Server break images on web browser after refreshed 3 to 4 times

Hi I am in very confusing state now. I have configured Nginx 1.6 on Centos 6 for serving only Code (js, css, html) pages all other images coming and calls happened through load balancer. My problem ...
0
votes
0answers
39 views

CentOS MySQL Problems

Im having trouble with MySQL on my centos5 server. When I try to connect to the server I receive the following message ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...
0
votes
1answer
29 views

How to add fastcgi support to nginx?

I'm trying to setup roundcube in my server with nginx on CentOS. this tutorial says: Add the following to the bottom of /etc/nginx/fastcgi_params: # Roundcube config fastcgi_keep_conn on; ...
0
votes
0answers
85 views

MySQL suddenly 'crashed' but not stopped, mysqld_safe 100% cpu on CentOS 6

Suddenly, today i see the website down. Checking the cpu with "top" in command, i found the mysqld_Safe at the top using all of the cpu. After some google i found some different solutions, i made a ...
-3
votes
1answer
32 views

Issued kill -9 -1, centos not working

created user in centos and edited nano /etc/passwd and edited created user as user:x:0:0::/home/user:/bin/bash and logged as that created user and issued kill -9 -1, from then on words my server not ...
2
votes
1answer
63 views

How to install openssl1.0.1 alongside the the default system openssl? (Centos/redhat)

I was tasked to setup openssl alongside the default version installed on the system. I want to know how I can set this up? I would like to point apache to use the portable version of openssl (I am ...
0
votes
1answer
39 views

Only one IP Rule Being Implemented

I have server that has a 10g card in it. I need to configure that server so that for a particular IP address (172.16.2.180) traffic goes over two 10g Ports, the second needed for failover . The ...
0
votes
1answer
39 views

WHM - php.ini in public_html stops default php.ini [on hold]

I have a server with WHM panel. OS is CentOS. When I put a php.ini in public_html PHP stops reading /usr/local/lib/php.ini. When I compare results of phpinfo() what I see is; error_log error_log ...
0
votes
1answer
158 views

GnuPG::Interface fails to install on CentOS 7

I'm trying to install a CentOS 7 server to run Request Tracker. By running make testdeps I can see all missing packages and make fixdeps is supposed to install this packages. There is one package that ...