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
0answers
34 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
39 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
94 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
52 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
39 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
40 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
43 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
24 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
27 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
39 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
48 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
331 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
50 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 ...
3
votes
1answer
211 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
22 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
33 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
34 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
113 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
28 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
84 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
46 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
102 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
15 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
24 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
27 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
55 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
0answers
22 views

I can't access my server on VM (VirtualBox) in centOS 7 [migrated]

I do install VirtualBox on Windows 7, and create a virtual machine, which install centOS 7. Then in centOS7 perform the installation of CollabNet Subversion Edge, following this information as a guide ...
0
votes
1answer
35 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
votes
0answers
31 views

Mysql service running very weird on Centos VPS [closed]

I have a VPS hosted at 1&1 where I host some domains and I keep some others for development. The applications are not very hungry in resources as they are all wordpress instalations. Also the ...
1
vote
1answer
42 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
51 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
0
votes
0answers
42 views

Mailserver stop receiving email dovecot log is missing suddenly

i have problem with my mailserver. in some randomly time my email in roundcube cannot receive email and i check in the log file /var/log/maillog Feb 1 10:00:51 ns1 postfix/pipe[20605]: 37CA81848A7: ...
-7
votes
1answer
57 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
39 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
56 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
35 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
48 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
59 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
93 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
48 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
36 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
25 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; ...