Questions tagged [centos]

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.

Filter by
Sorted by
Tagged with
3
votes
2answers
2k views

How can I Forward a subDomain to a specific port?

My apologies if this has been asked before. I haven't found an adequate solution so... yeah. When a specific domain, "example.com" is accessed, I want it to act normally. In other words, it should go ...
3
votes
2answers
21k views

Realtek r8169 not working in CentOS 6.5

We have recently purchased Gigabyte 990xe-ud3 motherboards. It came with Realtek LAN conroller. However with CentOS 6.5 it is not working, i.e. although it shows that it's connected with network, it ...
3
votes
1answer
3k views

How can I have multiple email accounts from different domains using Postfix?

I just made it through this helpful article and successfully have my mail server set up with a single domain. What I'm wondering now is how I can be able to add multiple email account for different ...
2
votes
1answer
7k views

How to make modprobe nf_conntrack_ftp persist a reboot on CentOS 7 and firewalld?

I'm stumped. I've seen the related questions about editing /etc/sysconfig/iptables-config, but I'm running CentOS 7 (and webmin/virtualmin), which uses firewalld instead of iptables. How do I get ...
2
votes
2answers
14k views

How to add virtual IP to network interface in CentOS?

My CentOS VPS got many IP addresses that I'd like to add to the eth0 network interface. Currently eth0 only got 1 IPv4 address and its other ones doesn't show up. My searching gives me terms like IP ...
1
vote
3answers
4k views

How to install easy_install using non-default Python Interpreter on CentOS?

I have downloaded, compiled and installed Python 2.7 on CentOS. I would like to download and install easy_install (and pip) for it but I am a little bit confused as to how to do that. How can I ...
1
vote
1answer
8k views

run multiple instances of MySQL CentOS7

I need to have multiple instances of MySQL running on my PC. I did this: yum install mariadb-server mariadb => install mysql mysql_install_db --datadir=/var/lib/mysql => use mysql_install_db ...
1
vote
2answers
2k views

What is the chroot command used for when resetting a password in RHEL/CentOS 7?

I'm trying to wrap my mind around exactly how password reset procedures work in CentOS/RHEL 7 and I'm missing some fundamental knowledge. In several different examples I see that chroot /sysroot is ...
1
vote
1answer
19k views

How to install lsblk on CentOS 5

I'm more used to Debian so yum and CentOS is a little new to me. Apparently, lsblk is not available on this system. I'm trying to install it via yum with no luck. I just get "nothing to do". I ...
0
votes
2answers
3k views

Add AD users to sudo group not working | CentOS 6.7

I am on CentOS 6.7 and want to add two domain admins to the sudo group. I have tried adding both users individully and both together see below: someuser ALL=(ALL) ALL #THIS Works, but is not a ...
0
votes
1answer
2k views

Difficulty installing PHP from source to CentOS 6.4

The problem: After installing PHP from source, functionality is not present - my phpinfo test page does not work. If I use yum to install from the repository functionality is restored. Why am I ...
0
votes
1answer
6k views

setting up a relay port for postfix smtp on CentOS 7

A CentOS 7 server has postfix, dovecot, and mailx installed. I am able to make an IMAP connection to the server from my remote Thunderbird client running on my local devbox. But I am not able to ...
5
votes
2answers
10k views

Sign a module after kernel compilation

I've built a kernel in tmpfs, then I rebooted. Now I see a message when I compile the 3rd party module, NO SIGN [M] XXXX.ko How can I get it signed? The key pair generated during rpmbuild is lost ...
4
votes
1answer
4k views

User logged in by sftp does not show up in `w`

My server is Centos 5. I have a chroot environment set up with the following in my sshd_config Match group sftponly ForceCommand internal-sftp ChrootDirectory %h AllowTcpForwarding no ...
3
votes
2answers
765 views

du not accounting for space shown by df [duplicate]

I have a CentOS 7.2 (minimal) VM running in a vSphere cluster, which has a 16G drive formatted as XFS under the default full-disk usage partitioning scheme from the CentOS installer. The system is ...
3
votes
0answers
543 views

r8169 stops working after a while

This issue appeared after the CentOS installation. Server becomes unavailable completely neither through ssh nor through smb protocol. It happens randomly and there is no exact regularity. It can ...
2
votes
1answer
2k views

Connecting to Active Directory (possibly with winbind)

I'm trying to figure out how to integrate Linux environment authentication system to Windows server 2012, and I found a way using winbind. I've searched Google and there are several pages that ...
2
votes
1answer
1k views

Grab the load average with top

The command below is grabing only the first load average, I would like to grab all the 3 load average. How can I change this code? top -b -n 3 -d 1 | grep "load average" | tail -n 1 | awk '/load ...
2
votes
1answer
969 views

How to reorder /etc/resolv.conf at load time [duplicate]

I have a CentOS system that retrieves its upstream DNS servers via DHCP. I want to run DNSMasq on this box and use it as a server to resolve some hostnames for development. The problem is when my ...
2
votes
2answers
747 views

agetty login program arguments

First post here. I'm trying to run some tests against a CentOS 6 machine, but my tests disable networking so I communicate over serial ports. I created an upstart job that sets up ttyS1 such that it ...
2
votes
1answer
977 views

Can rpm handle an install of another OS into another Logical Volume?

I am trying to install fedora as a domU under a CentOS dom0 using the method outlined in The Book of Xen. I have asked another question regarding a consistent error message of cpio: Bad magic when I ...
2
votes
1answer
5k views

virt-install complains “error: no such option: --network-bridge:br0”

I was following the directions here to set up a VM in CentOS 6.4 i386/686. But I'm getting this error: $ sudo virt-install --network-bridge:br0 --name vm1 --ram=1024 --vcpus=1 --disk path=/var/lib/...
2
votes
2answers
7k views

Change all folder permissions with 1 command

Within my web application directory, how can I change all my folder permissions to rwxr-xr-x (755)? And how can I change all file permissions to rw-r--r-- (644)? I want to change all folders and files ...
1
vote
1answer
3k views

Meaning of “available” field in “free -m” command

I am using Linux CentOS 7.2 version. I have searched details about this but can't found any useful information. What is this about?
1
vote
1answer
383 views

Docker container cannot pull github repo , name resolution fails

I am using docker version 1.7 on centos-6: docker --version Docker version 1.7.1, build 786b29d/1.7.1 The problem is: when somehow the /etc/resolv.conf file contains nameservers with ipv6 addresses, ...
1
vote
1answer
931 views

systemctl fails to accurately report status of daemons if they were started via mechanism other than systemctl

There are two mechanisms to start/stop my program "abc" systemctl service file inside /usr/lib/systemd/system/abc.service /etc/abc init script abc script will invoke all the daemons. But systemctl ...
1
vote
2answers
2k views

How to move disk space from /dev/sda to /dev/sda1?

I have a Virtual machine using centos 7 with 200GB disk.For some reason my layout is: df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 100GB 95GB 5GB ...
1
vote
2answers
489 views

Tar a list of files without their directory structure

Say I do this: tar cvf allfiles.tar $(<mylist.txt) and mylist.txt contains this: /tmp/lib1 /tmp/path2/lib2 /path3/lib3 How to tar the files so the tarball contains just lib1 lib2 lib3 with no ...
1
vote
1answer
755 views

How to install CentOS 7 into a directory (without booting an install system)?

I have a Linux system and I wish to install CentOS 7 alongside it. The problem is that I cannot boot from an install medium. Can I install CentOS without the installation system, or start the ...
1
vote
0answers
4k views

saving file to usb stick while using linux boot stick

I am using the instructions in this youtube video to install CentOS 7 on a new computer that is running Windows 8. The tutorial uses UniversalUSBInstaller from PenDriveLinux, but the installation is ...
1
vote
2answers
5k views

CentOS: How to install libyaml-devel from source?

I'm trying to install RVM in a CentOS server which for some weird reason I do not have access to internet. One of its dependencies is the library libyaml-devel. I already installed the libyaml ...
1
vote
2answers
5k views

error when adding user to wheel group in CentOS 7

I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing. What am I doing wrong? Here is what I typed: I discovered that ...
1
vote
1answer
113 views

Linux Command Not Functioning As Alias

I've created a command to count the number of sessions each user on our server has. It is: who | awk '{ print $1}' | sort | uniq -c | sort which works fine, but when I move this into an alias on the ...
1
vote
0answers
1k views

'group does not exist.' and 'Not enough space in file systems'

A CentOS 7 host needs to install a CentOS 7 guest using virt-install and kickstart, but the approach documented below is not recognizing either the designated hard drive or the dependencies. What ...
0
votes
1answer
230 views

CentOS 7: Firewalld ignores its configuration files

Why won't firewalld keep its configuration across restarts? # systemctl start firewalld # systemctl -l status firewalld firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/...
0
votes
1answer
2k views

Resizing an lvm2 pv CentOS partition

I have installed CentOS on Windows VirtualBox host. I had initially allocated 50GB but I ran out of space so I extended the vdi to 100 GB and then used a GParted live CD to extend the lmv2 pv ...
0
votes
2answers
3k views

How to get the ~/.bashrc to work in the native terminal application in Centos? [closed]

The problem I had was to get the .bashrc and .bash_profile and/or .profile scripts to execute by default when using the native Gnome terminal application. I found a number of references which told me ...
0
votes
2answers
4k views

Unknown lvalue 'After network.target' in section 'Unit' Centos 7

I modified unit files according to your post: [Unit] Description=My Portal Service After=network.target [Service] SyslogIdentifier=my-portal Environment=SERVICE_NAME=my-portal Environment=...
0
votes
1answer
2k views

Unable to mount “lvm2” volume

I had to reinstall CentOS on a system with a separate disk array for data. I installed on the OS disks and kept the other disk array as storage (so they were not formatted). When I try to mount the ...
0
votes
1answer
237 views

Terminal does not call 'then', reports a syntax error and command not found [closed]

I have CentOS 7. I am running a very simple script from BASH. I executed the chmod command and then ran the script file from a terminal. I got an error saying "if command not found" and that it is a ...
0
votes
1answer
112 views

Why does the group need --x permission on the parent directory?

I was trying to get the user nagios to have access a sub directory in another users home directory /home/alert/NagiosAlerts/. I was going crazy setting permissions that should have been to high to ...
0
votes
1answer
7k views

viewing firewalld logs via remote login to CentOS 7 server

I have firewalld installed in a remote CentOS server. When I log into the server over the internet as root, I type the following command to access the firewalld logs: journalctl --output=json-...
0
votes
2answers
904 views

Delete/repair files with weird permissions/owner/group

I have the following files (output of ls -l): ?rw------- 6144 1684128777 2049835008 50331648 Jan 1 1970 image1.jpg br-xrwSrw- 25120 1987343475 1936028517 110, 110 May 30 2032 image2.jpg ?---------...
-2
votes
2answers
818 views

CentOS difference between version [closed]

In CentOS 7.3 when i check for available kernels, i receive the following: [admin@CentOS73-x64 build]$ yum list --showduplicates kernel ... Installed Packages kernel.x86_64 ...
74
votes
8answers
141k views

How To Install Virtualbox Guest Additions On CentOS via Command Line only

Reading the Virtualbox user manual, I finally got [here], which explains how to install Virtualbox Guest Additions on a Linux guest via Command Line. But it's not clear enough for me (I just started ...
49
votes
8answers
344k views

How to change hostname on CentOS 6.5?

I can't seem to change the hostname on my CentOS 6.5 host. I am following the instructions I found here: http://www.rackspace.com/knowledge_center/article/centos-hostname-change I set my /etc/hosts ...
45
votes
3answers
149k views

How to update glibc to 2.14 in CentOS 6.5

I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update ...
69
votes
2answers
18k views

Process with weird random name consuming significant network and CPU resources. Is someone hacking me?

In a VM on a cloud provider, I'm seeing a process with weird random name. It consumes significant network and CPU resources. Here's how the process looks like from pstree view: systemd(1)───...
42
votes
5answers
371k views

How to create a FTP user with specific /dir/ access only on a Centos / linux installation

So I'm on a VPS - CentOS Linux installation. I have vsFTPd on the server. I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a ...
28
votes
2answers
43k views

How to configure Centos 7 firewallD to allow docker containers free access to the host's network ports?

I have docker installed on CentOS 7 and I am running firewallD. From inside my container, going to the host (default 172.17.42.1) With firewall on container# nc -v 172.17.42.1 4243 nc: connect to ...