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
14 views

recursively compare the contents of 2 directories in CentOS 7

A build process in an app is generating a directory structure in a CentOS 7 machine. I have copied the app to a second location in the same server, made a few changes, and then run the build process ...
1
vote
0answers
20 views

How to decode character to utf-8 at specific position [migrated]

I have a python script, in which there is a dictionary. For some reason, I need to convert dictionary to json. But, whenever script executed, It gives below error UnicodeDecodeError: 'utf8' codec can'...
2
votes
0answers
12 views

realm command doesn't work correctly when used in script (CentOS 7)

I try to automate the authentication on CentOS 7 Hosts over my AD with the realm commands. It totally works when I execute the following commands by myself. $ yum -y install realmd oddjob oddjob-...
0
votes
1answer
20 views

centos gdrive script, upload to new folder

I'm using https://github.com/prasmussen/gdrive Hello, I'm trying to run a daily script that creates a folder in Google Drive and then uploads a bunch of tar archives in it. So far I can create the ...
0
votes
0answers
14 views

How to set my own ipaddress for centos 7 via virtual machine [on hold]

Guys i am new to linux i have installed centos 7 via virtual machine in my laptop. But laptop changes one place to another for working. can set my own ipaddress for not change from place to place. I ...
0
votes
0answers
16 views

Cannot install nextcloud despite correct permissiona

I have just spun up a CentOS 7 VM to host an instance of nextcloud however next-cloud constantly complains that the web-server cannot write into the config directory. My permissions are as follows, ...
0
votes
0answers
20 views

CentOS: wrong network-scripts order for bridge

i created a new bridge in /etc/sysconfig/network-scripts/ifcfg-br0 and linked the real device in /etc/sysconfig/network-scripts/enp2s1 root@vhost ~ # journalctl -u network.service -- Logs begin at ...
1
vote
1answer
18 views

Keep a live clone of a machine into another

I am trying to find the easiest and most elegant solution to keep two desktops running that are clones of each other. I have a machine running cobbler. Every once in a while a few delicate changes are ...
0
votes
1answer
54 views

Is there some free space on this sda3 partition?

Total space of sda3 is 80.2 GiB ( 29.8 + .218 + 3.7 + 30 + 6.3 = 70.018 ) I don't understand where is the rest 80.2 -70.018 = 10.182 GB [root@centos ~]# df -hT Filesystem Type ...
0
votes
0answers
10 views

Not able to discover new iSCSI targets I added

Initially I defined one target in targets.conf on my storage server and was able to discover and login to it on my client server. I logged out of this first target then defined a SECOND target on ...
0
votes
1answer
18 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: ...
0
votes
0answers
34 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 ...
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
2answers
56 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 ...
2
votes
2answers
254 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 ...
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:/...
1
vote
0answers
22 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 ...
0
votes
0answers
24 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
51 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 ...
0
votes
1answer
15 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
25 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
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 ...
4
votes
0answers
36 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
1answer
27 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
1answer
34 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
16 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 ...
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 ...
0
votes
0answers
32 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
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,...
0
votes
0answers
10 views

Add Softether Service

I'm running CentOS 7, up-to-date. I installed Softether like they did in the tutorial. Now, I tried to add ad service to start ans stop the server. Like in the tutorial. I created the file at /etc/...
0
votes
0answers
16 views

Can't pipe contents of a file but can do more [duplicate]

I am trying to transfer SSL certificates from my server to a docker container running on the same server. Permissions on the file: $ sudo ls -al live/my.server.com/cert.pem lrwxrwxrwx. 1 root root ...
7
votes
3answers
668 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 ...
0
votes
0answers
42 views

can not add key to ssh agent with ssh-add, because it asks for a pass-phrase

I just generated an SSH key, without a passphrase, to run some scripts that pull files from GitHub. However, I was having issues so I ran ssh -vT git@github.com which according to the debug statements ...
0
votes
1answer
23 views

Site cannot be reached after installing centos 7

Hello I am new to this unix background. I had set up a server on centOs 7. i had given ip as 192.0.2.123 and host name as www.example.com. now when i www.example.com hit the hostname in the browser ...
0
votes
0answers
12 views

CentOS: Torrent through VPN while still being able to serve web applications

I have a CentOS server with a a torrent client (anacrolix/torrent) and would like all torrent traffic to go through an OpenVPN connection. However, I still need the server to be able to be reached for ...
-1
votes
0answers
26 views

Unable to connect to remote asterisk

I am using CentOS 7 (Latest Veriosn). I have installed Asterisk 13 on my CentOS. Now I am trying to start the Asterisk by using this command #asterisk -rvvvvvvvvvvvvvvv but no luck,I am getting ...
1
vote
2answers
40 views

Extend virtual hard disk for CentOS

I have extended a thick virtual hard disk to 80 GB under vSphere for a CentOS virtual server. I need to extend the logical volume to maximum allowed. Can someone please assist? The physical sda2 is ...
0
votes
0answers
25 views

How to create & restrict ftp user on cent os [duplicate]

I know nothing about server. but I need to setup a server and provide different ftp user accounts for different project. So, I've setup a web server. install all necessary things along with vsftp. I ...
0
votes
0answers
10 views

Getting error to install centos 7 from bootable usb

I am trying to install cent os 7 from bootable usb but it is giving below error, see screenshot Anyone knows what went wrong.
1
vote
1answer
30 views

How to setup a docker container to run on boot in CentOS 6.7

I have a CentOS 6.7 server and I would like to run the docker containers at boot time. The docker service already gets started at boot time. I would like to run this command on boot time: docker ...
3
votes
0answers
36 views

Is is possible to override an RPM's service user account during installation?

While doing an installation of an RPM using either rpm or yum is it possible to override the default user account that's typically defined in the RPM .spec file? I'm specifically dealing with an RPM ...
0
votes
0answers
33 views

Why i cannot access this shared directory? [closed]

1) I have created two users mukesh and mukesh2 2) changed the default user private group name from mukesh to shared_dir for directory shared_dir [mukesh@centos Desktop]$ pwd /home/mukesh/Desktop [...
-2
votes
1answer
22 views

Halt the server daily at a specific hour

I have a CentOS 5 server, I want it to halt DAILY at 21:00 and wake up DAILY at 8:00 For the wake up I did it in the bios, but for the halt I want to configure it through cron. How to do it with SSH? ...
3
votes
1answer
17 views

Display and network card not working if booted without a display

I'm facing a kind of a mysterious problem. We have a PC with Debian 8 installed. It boots fine and works well, unless I try to boot it wihout a display. So, I shutdown the PC, unplug display and then ...
3
votes
1answer
36 views

can't login in new user via ssh 'server refused our key'

There are a number of similar questions, for example SSH: "Server refused our key" with no reason However, I've gone through the suggested checks and can't seem to get a new user to connect ...
0
votes
2answers
25 views

grub in centOS, I can't start my Server

I was changing my HD with a (Windows Program for Partitions), now I can't to start the server, CentOS. I remember this: /etc/grub.conf & default=1 timeout=10 splashimage=(hd0,4)/grub/splash....
0
votes
0answers
25 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
0
votes
0answers
12 views

Move Linux Partitions, Dual Boot with windows [migrated]

I'm not thinking about Expand Linux Partitions... I need Shrink (one, the larger) and move it (two, with the swap)... Here my HD from Windows (Disk Management) Now, I want to reduce the last ...