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
2answers
24 views

kadmin cannot list principals “requires list privileges”

I can authenticate fine via kadmin however cannot list principals? [root@server ~]# kadmin -p admin Authenticating as principal admin with password. Password for admin@org.domain.com: kadmin: ...
0
votes
2answers
52 views

/etc/crontab file not executed

I created a dummy entry in /etc/crontab, but it doesn't get executed according to cron log /var/log/cron: Feb 7 08:20:01 localhost CROND[22781]: (root) CMD (/usr/lib64/sa/sa1 1 1) Feb 7 08:30:01 ...
0
votes
1answer
88 views

CentOS 7 : cannot create mysql.sock

I've installed MySQL on CentOS 7. It looks fine, start mysqld service and change root password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ...
0
votes
0answers
18 views

Why does Apache hang when failing to connect to LDAP?

Environment: Centos versions: 5.11, 6.6 Apache version: 2.2 Apache hung on several of my webservers today after failing to connect to LDAP. I fixed the LDAP issue but I was wondering why Apache ...
0
votes
1answer
32 views

yum Cannot open: oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm. Skipping

I am following this article on installing the oracle client RPMs on a CentOs 6.x server using yum localinstall.for some reason yum cannot open the RPMs - and I am at a loss as to what the next step ...
0
votes
1answer
30 views

Apache: SSL and Non-SSL (without VirtualHosts?)

I have a web server and have two folders I would like to treat differently. One folder on the local filesystem should use SSL and the other should not, for example: /path/to/ssl/site ...
0
votes
1answer
13 views

SNMP error setting up Cacti with CentOS

I'm trying to get Cacti, which runs on one VM, to graph the data from another VM. However I'm facing an SNMP error despite my efforts. The two VMs are running as NAT connection on VMWorkstation. The ...
-3
votes
0answers
21 views

Centos VESTACP Eat up all of my RAM and SWAP [duplicate]

total used free shared buffers cached Mem: 490 481 9 0 6 78 -/+ buffers/cache: 395 95 Swap: ...
2
votes
1answer
43 views

Finding text and deleting file [duplicate]

On my server spamming files are uploaded , which start with <?php ${"\x47\x4cO\x42A\x4c\x53"}["cgw\x71\x77\x77\x64\x79q"] I'm trying to find all files on server which is having above string and ...
-1
votes
0answers
13 views

how to migrate unix jobs scheduled via “at”

I've scheduled a bunch of jobs via "at"(listed by atq), then I had to do an OS reinstall. The original OS disk is intact, can I migrate the "at" jobs. How are they stored?
0
votes
0answers
43 views

Play Framework 2.3 startup scripts for systemd?

We're upgrading to Play 2.3.x (which uses activator) and CentOS 7 (which uses systemd). Previously on CentOS 6 we used this SysV init script to start/stop/restart our various Play applications. Is ...
0
votes
1answer
33 views

Using tc to delay packets to all IP address except for a single IP address

I'm familiar with this post here: Using tc to delay packets to only a single IP address Which will delay outbound packets to a single IP address. I want to do the opposite, which is to delay all ...
1
vote
2answers
45 views

server maintenance to prevent fsck failures

once in a while after a reboot I found fsck would fail on OS disk and booting becoming impossible on many of my servers. and then I had to reinstall OS and do data migration from the failed OS disk. ...
-1
votes
2answers
44 views

Cannot setup hostname and FQDN Centos 7

I'm now running CentOS-7.0-1406 and looks like i can't setup hostname properly. As far as i know, you need to setup hostname using hostnamectl set-hostname command and write FQDN in /etc/hosts. I have ...
1
vote
1answer
76 views

Configuring IPtables to mirror traffic in CentOS

I'm trying to set up iptables to mirror traffic coming into eth2 and send to 10.1.4.4. I have been reading a lot of documentation on this but am having some issues. Here is the command I am trying ...
-1
votes
0answers
108 views

How to set gmail smtp on Postfix (Centos 6.6)

i am out of luck, have tried almost everything but it does not work. I have a static IP. Now the log error: **Must issue a STARTTLS command first...** Here is the main.cf config: # postfix ...
-1
votes
1answer
75 views

Cron job is not working in centos 6.6

I have dedicated server having centos 6.6 and centos webpanel. Now I'm trying to set cron job from centos web panel. I had tried so many commands to run one php file each and every minute, but still ...
-4
votes
0answers
22 views

Port Forward :80 and :8080 to Two Different Servers [migrated]

On a CentOS 6 server with an IP address of 172.16.1.10, how can I configure iptables to route traffic destined for 172.16.1.10:80 to 192.168.1.10:80, and traffic destined for 172.16.1.10:8080 to ...
1
vote
1answer
26 views

Remote port forwarding not working

I have a test app I run locally, and use remote port forwarding to give others access to it. This was working just fine, until I set up a new server instance on EC2. The EC2 server runs CentoOS 7. ...
-1
votes
0answers
66 views

Installing MySQL in Cent OS 6.6 Final

I removed/ uninstalled MySQL version 5.5.40 from my VPS and want to install the latest version of MySQL but when I run the following command: sudo yum install mysql-server mysql I get the following ...
-2
votes
0answers
24 views

Setting up SMTP correctly [duplicate]

I've created a mailbox on my VPS, using CentOS and Virtualmin. But all mails that I send go to trash. I've used http://mxtoolbox.com/ and from what I understand it goes to the trashmail because of a ...
-1
votes
1answer
49 views

MySQL on iscsi drive CentOS7 wont start on boot

I configured Mariadb on CentOS 7 to run on iscsi drive mounted on /mnt/iscsi, but it wont start on boot with following error (it can be started manually): mariadb.service - MariaDB database server ...
0
votes
1answer
54 views

[root@pcm-ipa-01 tmp]# klist klist: No credentials cache found (ticket cache FILE:/tmp/krb5cc_0)freeipa kadmin admin principal not found

I have installed freeipa on centos and after restarting the service seems to have lost authentication for "kadmin" [root@pcm-ipa-01 ~]# kadmin init Authenticating as principal root/admin@MY.DOMAIN T ...
0
votes
2answers
68 views

How to route outbound traffic for a particular destination IP address to GRE Tunnel in CentOS?

Hello I am trying to configure a network like this network diagram :- Well I have to create a GRE Tunnel at my alpha server and route some particular traffic to GRE Tunnel.I want to do the configs ...
0
votes
1answer
45 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
107 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
38 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
41 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
117 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
53 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
26 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` ...
-1
votes
0answers
48 views

InnoDB Error in MySQL after server crash

My problem started on 26.01.2015 when my server (CentOS 6.5) crashed - database wasn't shut down properly (MySQL 5.1.71). After restart there is something weird in error.log 150126 8:03:49 InnoDB: ...
0
votes
1answer
45 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 ...
-1
votes
0answers
19 views

To use ssh-id-copy do you need both id_rsa.pub and id_rsa? [migrated]

I am trying to setup a second access ssh key for a friend. He sent me his id_rsa.pub. ssh-copy-id -i id_rsa.pub root@123.123.123.123 /usr/local/bin/ssh-copy-id: ERROR: failed to open ID file ...
-3
votes
0answers
25 views

Basic User Isolation in CentOS 6

I have been tasked with setting up a shared hosting server for our intranet for different departments. What is the best way to isolate users, while still allowing them to see all files in their ...
0
votes
0answers
49 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
0answers
28 views

Failed when tried to compile apache with easyapache

I want to enable pdo and pdo mysql for magento. I have root access on the server. I tried to recompile apache using easyapache through whm and i received the following !! The server's system ...
0
votes
1answer
30 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
43 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
53 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
48 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
25 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
361 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
57 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
27 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
215 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
24 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
34 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
0answers
34 views

Centos LVM / Volume Group problems

I am trying to remove a volume group but it says that it cannot be found, although when I try to create one with the same name, it says that it already exists. root@server [/]# vgremove backup_group ...
1
vote
1answer
35 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: ...