Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

learn more… | top users | synonyms (2)

0
votes
1answer
7 views

Setting up FTP Server (Passive) vsFTPd CENTOS7 issue

I'm actually having error on this setup. I'm getting 500 Illegal PORT command. 425 Use PORT or PASV first when go using command PUT. I'm currently using CENTOS 7.2 Here's my vsftpd.conf: ...
7
votes
3answers
39k views

PHP 5.5.13 on CentOS 6.5 with yum

I've got problems with installing PHP 5.5.13 (last stable build) on a CentOS 6.5 (64 bit) machine, through yum. Can somebody guide me through this a little bit? It is not a part of the CentOS, EPEL ...
1
vote
1answer
2k views

rc.local not being executed when os boots up

I have a script that needs to be run when os boots up. I added it to /etc/rc.local. It was working fine for sometime but now rc.local does not load at boot time. When i checked the permissions on the ...
1
vote
2answers
134 views

Why doesn't my blockdev config change execute from rc.local on reboot

I am (probably obviously) a relatively new Linux user, so I'm already bracing for the barrage of "why aren't you doing it this way instead..." comments. I'd love to hear them...but I would also really ...
1
vote
2answers
1k views

Failed to join domain: failed to set machine kerberos encryption types: Insufficient access

Has anyone gotten this error when trying to join CentOS 7 to Active Directory? I tried various ways(via cli, gui, tui) and always get same error. Failed to join domain: failed to set machine kerberos ...
1
vote
0answers
28 views

CentOS: Prioritize UDP traffic based on UDP port number?

We have an two important applications on a CentOS box - one is Syslog, which is using UDP port 514. The other is bind (DNS), using UDP port 53. Is there a tuning mechanism that can be used to give ...
0
votes
0answers
30 views

restarting service

When I try to restart a service like apache with the following command: service httpd restart it hangs, meaning it says Redirecting to /bin/systemctl restart httpd.service but then it does ...
0
votes
1answer
21 views

CentOS - cron service dies every few days

I am on using CentOS 6.7 server and every few days my cron service dies. I've tried checking: cat /var/log/messages | grep cron but there was nothing relevant. How can I check what's killing the ...
1
vote
2answers
43 views

Changes to /etc/security/limits.conf and /etc/security/limits.d/20-nproc.conf have no effect

On a CentOS Linux release 7.1.1503 (Linux kernel version 3.10.x) VM, I added the following lines to both /etc/security/limits.conf and /etc/security/limits.d/20-nproc.conf: someuser soft ...
6
votes
2answers
1k views

Error after installing dnf on CentOS 7

Installed dnf according to these instructions: yum install epel-release -y yum install dnf after that dnf --version works fine but dnf repolist or anything else gives: Extra Packages for ...
0
votes
1answer
72 views

Where to get l2tp plugin for Network Manager in Centos 7

I need to connect to the l2tp VPN of my company, but I cannot find the package NetworkManager-l2tp in repositories. I used to use it in Fedora, but I cannot find it in the repositories of Centos 7. I ...
3
votes
3answers
5k views

CentOS grub2 booting iso via loopback

I've got a usb-key setup to multi-boot different Linux images. I'm trying to add CentOS, here's a post with similar entries for grub.cfg set drive_label=multipass01 set isopath=/iso menuentry "...
0
votes
1answer
4k views

No IP address on VMware running centos 7

I just now installed Cent OS 7 on my VMware 8 and I am not able to connect it to a network. I checked the VM network and its mapped to the physical NIC. The same setting work like charm on my CentOS ...
0
votes
0answers
12 views

connect CentOS to PPTP vpn and stay connected via SSH

I have a centos 6.8 VPS in my university which can access the internet with PPTP VPN, The question is how can I connect it to PPTP and don't loose my connection to it over SSH? I'm totally new in ...
1
vote
0answers
59 views

NameVirtualHost address is not supported, proceeding with undefined results [on hold]

Apache Details Server version: Apache/2.2.15 (Unix) Server built: Aug 28 2015 22:18:57 Varnish varnishd (varnish-3.0.7 revision f544cd8) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2014 ...
4
votes
2answers
6k views

Installing python modules for python2.6

On my CentOS 5.8 system (el5 , 64bit), I had python2.4 after OS install and I installed python2.6 now. Now I want to install python modules using yum. But whenever I install a new python module it "...
2
votes
1answer
5k views

SELinux Write access for vsftpd and samba

This should be easy enough I think, but I'm new to SELinux. I have a CentOS 6 file server. I have some LVM file systems at /var/media and I want to use both Samba and FTP to share them with a Windows ...
2
votes
2answers
244 views

CentOS 7 - yum install not working

Whenever I want to use command yum install <packagename> I get error: No package available For example, [root@cpanel1 etc]# yum install autossh Loaded plugins: fastestmirror Loading ...
4
votes
0answers
35 views

Owner can't read /proc/$pid/io

On CentOS 7, I am trying to debug an issue where the nginx amplify agent cannot read /proc/$pid/io even though it is owned by the proper user. One of the nginx worker processes right now is pid 5693: ...
1
vote
0answers
18 views

Force authentication to use sssd not nslcd

What I did was: vim /etc/sysconfig/authconfig USESSSDAUTH=yes USESSSD=yes FORCELEGACY=no Then: authconfig --enablesssd --enablesssdauth --enablelocauthorize --update ...
1
vote
1answer
1k views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
1
vote
1answer
35 views

Can not connect to the host itself

Well, the problem is simple. I have the site based on apache and trying to execute cron job at this site from the same server. Let's say my site http://example.com and cronjob is /usr/bin/curl http:/...
3
votes
1answer
887 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
0
votes
2answers
2k views

ffprobe or avprobe not found. Please install one

I want to add tags to mp3 converted with youtube-dl & ffmpeg in CentOS 6: command line : youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(...
0
votes
0answers
22 views

can't get wifi link

I just put a fresh install of CentOs 7 on my laptop. I wanted to set up the wifi using the terminal so I was following these instructions: http://linuxcommando.blogspot.com.br/2013/10/how-to-connect-...
1
vote
3answers
44 views

Run application built on Ubuntu on CentOS

Is there a way to deploy an application, that you built on Ubuntu, on CentOS? And if so, how? EDIT: Sorry, I should have given some more info. It's built on Ubuntu 15.10 with Qt 5.6, and besides Qt ...
-1
votes
1answer
10 views

Centos 7: Gnome-Shell in Multi-User.target/Runlevel3

i have a server on which have installed CentOS 7, Server with GUI. now, i have set my server to boot to multi-user.target isolation level (or run level 3 in old speak). i am unable to understand why ...
0
votes
1answer
220 views

How do I install driver for the Linksys WUSB6300 in CentOS

I want to install the WUSB6300 driver in CentOS. I found good information for Ubuntu here: driver for WUSB6300 in Ubuntu However that did not get me anywhere since the C code did not compile in ...
0
votes
1answer
3k views

What variables are valid within /etc/default/useradd file?

My /etc/default/useradd file is as follow: # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes man page for useradd provides many ...
4
votes
1answer
3k views

Bridge does not get IP via DHCP at boot

I'm running CentOS 7. I'm not running NetworkManager, and I've actually uninstalled it. My system is supposed to acquire an IPv4 address via DHCP on br0 at boot. Howver, when I log in, it has no ...
2
votes
3answers
132 views

How can I set up a secure LAMP stack on CentOS?

I have been using linux for years, but I need some clarification on what are probably pretty basic principles to how the OS works, but I definitely need clarification due to security concerns. I am ...
1
vote
1answer
1k views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
0
votes
1answer
14 views

Centos 6 Install PHP 5.6 Memcached conflicts

I have tried to install PHP Memcached but got error conflicts between attempted installs of [root@localhost ~]# yum --enablerepo=remi-php56 install php-pecl-memcached Loaded plugins: fastestmirror, ...
0
votes
1answer
24 views

yum installation fails because of a saved transaction

I am trying to install some packages and yum fails every time stating that the package should be installed by load-transaction command. I want yum to fetch the packages from internet and install it ...
0
votes
1answer
975 views

Downgrade Centos 7.2 to 7.1

I am currently using Centos 7.2.1511(check from file /etc/redhat-release) and trying to downgrade it to Centos 7.1.1503 (due to some package installation issue in centos 7.2) using the command yum ...
7
votes
3answers
666 views

How can I safely ensure a variable contains only a valid filename?

Given the script below, how can I ensure that the argument only contains a valid filename within /home/charlesingalls/ and not a path (../home/carolineingalls/) or wildcard, etc? I only want the ...
1
vote
1answer
1k views

“503 Service Unavailable” error in “yum update all” command

I am working on CentOS 6.4. I have setup a local repository using apache server. The path of the local repository is /var/www/html. The etc/yum.conf file has a proxy server mentioned through "proxy=...
2
votes
3answers
9k views

CentOS 7 hostname will not change

I have two CentOS 7 VM's running in virtualbox. On each of the machines I want to set the hostname and a static IP address. VM1 works just fine. VM2 does not. I did the same thing on both servers so I'...
0
votes
1answer
35 views

Restrict a user so it doesn't have permission to do anything

I am trying to create a user whose only goal is to authenticate and receive jobs and files from a virtual printer (CUPS) in his home directory. The user should not be able to do anything at all. Even ...
0
votes
2answers
565 views

How to configure Apache init scripts, after compiling and installing the sources?

I installed Apache using this script https://gist.github.com/Benedikt1992/e88c2114fee15422a4eb The system is a freshly installed CentOS 6.7 minimal system. After installation I can find the apache ...
1
vote
1answer
60 views

Unable to add or delete users

I'm currently having issues running adding, deleting and modifying Linux users. Reasonably new to Linux so pretty sure I have tried everything to resolve this. [root@device01 /]# useradd testuser ...
1
vote
1answer
3k views

Why is apache giving DNS lookup failures?

A CentOS 7 web server has tomcat serving up war files behind an apache httpd reverse proxy. This works perfectly when the WAR files are all server-side code. But when client side code (AngularJS in ...
1
vote
1answer
26 views

aes-ni enabled but no kernel support?

Tools like cpuid and cat /proc/cpuinfo can confirm that aes instructions are available right? But then I check /proc/crypto and do not see AES. I am running CentOS 6. Am I correct in my understanding ...
0
votes
0answers
31 views

Outgoing network connections fail, incoming ssh login delayed [closed]

I'm having the following trouble with outgoing connections in CentOS: yum cannot connect (just hangs on "Determining fastest mirrors") Could not retrieve mirrorlist http://mirrorlist.centos.org/?...
0
votes
1answer
32 views

Script to ban IPs that try to enter root on server

Is there such a script that blocks IPs that try more than 3-4 times to access root? Because everytime I open the server (CentOS) i get the message that root has been brute forced (bots obviously). I ...
-3
votes
1answer
15 views

how to configure kickstart server in RHEL7? [closed]

please let me know the full configuration of kickstart server in RHEL7 server.
0
votes
0answers
6 views

Internet keeps getting disconnected on VirtualBox Host

I'm running OS X 10.11.5 on which I have installed CentOS 7 on VirtualBox. Everything seems to be working correctly except this minor bug. Internet keeps getting disconnected if I leave the CentOS ...
5
votes
1answer
824 views

Implications creating System Accounts “useradd -r” Linux Fedora/RHEL/CentOS

I want to know what are the implications of create an account using -r option? # useradd -r ... The help says: -r, --system Create a system account. System users will be created with no aging ...
0
votes
1answer
21 views

Clone disk of a running VM and run it on VirtualBox

I'm in the following situation: I need to "clone" the disks (sda, sdb) of a running CentOS VM over SSH (i did this step by following this guide) and deploy them on something like VirtualBox. I tried,...
1
vote
1answer
1k views

CentOs 7 Python Issue “-bash: python: command not found”

I asked this at stackoverflow, but just realized it might be best here. If I need to delete it over there or should not have posted here, please let me know. I am still new to this site. Thanks in ...