Red Hat Enterprise Linux (RHEL) is a commercially supported Linux distribution.

learn more… | top users | synonyms (1)

3
votes
4answers
22k views

How do I know that my rpm installation of a package was succesful?

I downloaded the rpm for dos2unix and installed (on RHEL 6, 64 bit) like this [root@xilinx Downloads]# rpm -ivh dos2unix-5.3.3-5.ram0.98.src.rpm 1:dos2unix warning: user mockbuild ...
3
votes
2answers
8k views

How to Add Extra Disks on KVM based VM

I installed Redhat 6.4 on KVM Server. Right Now there is only One Disk /dev/vda. Now I need to add extra Disk like /dev/vdb I tried adding New Volume but it is not showing when I do fdisk -l How to ...
3
votes
3answers
272 views

Which Red Hat Enterprise Linux packages for CentOS?

I want to use a Red Hat Enterprise Linux RPM software package on CentOS 5.6, but I don't know which version of RHEL works with CentOS 5.6. RHEL 4 = CentOS 4? RHEL 5 = CentOS 5? ...
3
votes
5answers
2k views

Does $SHELL store the path to the default shell in Linux?

My administrator says that my default shell is set to bash, but $ echo $SHELL /bin/csh $ Is the default shell related to the SHELL variable at all? Is not, what is the variable used for?
3
votes
2answers
967 views

No idea how to troubleshoot Bugzilla email issue

I'm a complete n00b when it comes to Bugzilla (and complex perl applications in general) so don't assume any level of knowledge in that area. If I haven't documented it in this post, assume I haven't ...
3
votes
3answers
16k views

On Red Hat Enterprise Linux 6.2 how can I use Python 2.7 as default not Python 2.6? I did but still showing 2.6?

RHEL 6.2 I have python 2.6 but I need default python 2.7 using yum packaging (so that nothing goes messed up, cause its a heavy duty working system, all I need the python 2.7 on it, without messing up)...
3
votes
1answer
907 views

Send Logs to multiple syslog servers

Previously we were using one Logging server. But now we have added one extra Logging server which will also be storing logs received from client . I need to know how to add these two Syslog servers on ...
3
votes
1answer
2k views

yum: RPM dependency tree

I'm going to install an RPM package and I can see that some of dependencies requires X server libraries to be installed as well. I'm absolutely sure that the package I need is a server software and ...
3
votes
5answers
2k views

Run a script on multiple shells?

I have two servers one AIX with default shell ksh, the other RHEL with default shell bash. I have a script that is mounted on both that will run similar commands but for either AIX or Linux. This ...
3
votes
1answer
180 views

RedHat RPM file collision

Let's assume I have two RPM packages named 1.rpm and 2.rpm. Both of them want to put a file test into /usr/bin, but both of them use a different version of test. Of course I would like to have both ...
3
votes
1answer
2k views

Not able to extend the size of an LVM logical volume

During RedHat installation, I created one volume group with two logical volumes in it. Volume Group Name = VolGroup00 LVMs = LogVol00 and LogVol01 LogVol00 size = 48G LogVol01 size = ...
3
votes
2answers
1k views

Installing yum packages by pattern

I want to install all openoffice packages. Passing openoffice* obviously wouldn't work, because it'd look at file system. How can I do that?
3
votes
3answers
952 views

What version of Red Hat is used for the Red Hat Certified System Administrator Exam?

What version of Red Hat is used for the Red Hat Certified System Administrator Exam? Because I don't have over $3000 to invest in the Red Hat course that prepares you for the exam I am going to ...
3
votes
1answer
96 views

Filesystem still showing the old value after reduction in linux, however showing the correct value in LVM

We have a task to resize the filesystem from 8T to 7T which is in LVM. We have given resize2fs command, while the command is still being run we have got the error "Write failed: Connection reset by ...
3
votes
1answer
411 views

Odd behavior with a gzip compressed file

I've got a very bizarre issue occurring with a Redhat system. We have a Gzip-compressed TAR file that contains hundreds of small text files with absolute paths. It's only 8 MB. We copy this file to a ...
3
votes
2answers
189 views

How can I make my home Linux most closely resemble the Linux used at my school?

We have to ssh into our school's server to make sure our programming assignments work on the system that will be used to test them by the teacher. It's running RHEL 6.2. When I test my program on my ...
3
votes
2answers
77 views

Keeping CentOS up to date in a flexible way without giving out root credentials?

Title was "Running yum update && yum upgrade without root-privileges?" I want to allow an unprivileged user to start a system update on a RHEL-based system (CentOS 7). yum-cron is not an ...
3
votes
2answers
660 views

Host multiple Linux distros on PXE Server and show these choices to PXE client

PXE Server - CentOS 6.5 64bit Objective - Client should be presented with OS choices in network boot menu - Oracle Linux 6.5, RHEL 7, Ubuntu 14. Upon selection it should proceed with the selected OS ...
3
votes
2answers
298 views

Is there a correlation between CentOS and RHEL versions?

I am trying to install an HP NC364T (4 port ethernet adapter) onto a machine running CentOS 7, however HP only supplies drivers built for RedHat, SCO, SUSE, Sun and Solaris. I know CentOS is intended ...
3
votes
1answer
6k views

What is the purpose of UUIDs for NICs?

On Fedora/RHEL/CentOS there is a line in /etc/sysconfig/network-scripts/ifcfg-x files which defines UUID: UUID=30fcd648-ad1e-4428-as6f-951e8e4d16df NICs have MAC addresses by them selves, so what ...
3
votes
2answers
128 views

Accidentaly changed the permissions in / [duplicate]

Accidentally did : chmod -R 777 / Now, RHEL 6 is not booting up. What do I do? I have a DVD and can go into rescue mode. Can someone explain how do I reset all the permissions ? Update ...
3
votes
1answer
2k views

Can I use yum to manage a “package” installed from source

I am running CentOS 5.5. I need to upgrade some packages to newer versions, unfortunately they're not available. I am stuck building from source. Is there a simple way to use yum to manage ...
3
votes
3answers
8k views

YUM UPDATE stuck forever

I created repository for RHEL 5.6 . There was already an exiting repository for RHEL5.2 which I deleted. And i run following commands yum clean all yum clean metadata then, Yum list all It list all ...
3
votes
3answers
7k views

redhat vs debian/ubuntu system architecture (& not deb vs rpm)?

What are the key areas (except package management) where Fedora/RHEL/CentOS differ from Debian/Ubuntu Linux systems? I'm asking this from a newbie's perspective to the Linux admin world so that I can ...
3
votes
1answer
182 views

How to skip DNS checkup while I'm disconnected from Internet

I use RedHat machine. /etc/resolve.conf was set to nameserver 8.8.8.8 and it works well. I'm wondering how to connect my machine if it's disconnected from internet? It seems that if DNS of 8.8.8.8 is ...
3
votes
1answer
13k views

Creating an ext4 partition fails with “invalid blocks count”

Environment: - Virtual machine on VMWare ESX 4.0 - OS: fully up to date RHEL 5.8 After adding a new (virtual) disk I want to create an ext4 partition on LVM on this disk. Steps taken so far: $ sudo ...
3
votes
3answers
2k views

Temporary restore LVM snapshot of root

I have a snapshot of the root filesystem that I want to boot with - bring the machine into a state it was a few days ago, run some tests and then go back to where I am right now. I tried editing ...
3
votes
3answers
15k views

Red Hat Enterprise Linux 6: /boot/grub/menu.lst or /boot/grub/grub.conf?

I have a brand new Scientific Linux 6 system, but this same question should apply to CentOS 6, RHEL6 or any RHEL6-derivative. I see that /boot/grub contains a menu.lst as well as a grub.conf file. ...
3
votes
2answers
7k views

Run getty on a serial port on startup on RHEL

I want to put a getty on ttyS2 on a RHEL 6.1 box so I can use IPMI's serial-over-ethernet functionality to log in to a machine when SSH isn't working. In the past (on Ubuntu?), I used to add a line ...
3
votes
2answers
232 views

dnf - how to show which mirror url has been chosen?

Below is the part of bash log, the full log can be achieved at https://gist.github.com/limkokhole/f2a423112aa005f10862: [xiaobai@xiaobai hello]$ dnf --verbose download --source readline cachedir: /...
3
votes
3answers
8k views

How can I determine if an NFS remote is exporting a directory?

In my script, I have several layers of statusing: remote is available (ping) remote NFS service is active remote NFS is exporting a certain directory remote NFS is mounted (mount) For (2) and (3), ...
3
votes
3answers
4k views

Creating a GnuPG keyring for apache

Here's the scenario, we're using GnuPG to encrypt data between 2 web servers. 1 is on RHEL. GnuPG will be accessed through cgi scripts to encrypt and decrypt. So I need a keyring that the apache user ...
3
votes
1answer
44 views

Switching users without the - symbol

I had to switch to a different user earlier for something that I was working on. I have originally done: su support While I was successfully able to switch to support, I found I was unable to make ...
3
votes
1answer
890 views

sudo environment: “g++: command not found”

I have a relatively fresh RHEL 6.5 install, on to which I have installed from source GCCC 4.9. After I installed GCC 4.9, I uninstalled the distro-provided older GCC version via: sudo yum remove gcc ...
3
votes
1answer
3k views

NTP server not working properly

I have installed a very simple NTP server on a Red Hat server I own, the configuration is pretty basic: driftfile /var/lib/ntp/drift restrict default kod nomodify notrap restrict -6 default kod ...
3
votes
2answers
944 views

RHEL - not able to write in /opt as root

I am trying to copy a virtual box image inside /opt folder in RHEL 5.6. I am logged in as the root and I strangely see that I am not able to write anything into /opt folder. I checked the permissions ...
3
votes
1answer
1k views

Debugging dmesg logs

I noticed I have the following in my logs. I just am not sure as to how to go about figuring out how to fix or find out what is causing them and if they are serious. [582046.956291] Core dump to |/...
3
votes
2answers
7k views

Using tcpdump to extract NFS RPC contents

Fairly simple question... I'm running tcpdump and trying to analyze the contents of the TCP packets between server/client. I see the "GETATTR" RPC being received, which is great! However, I want to ...
3
votes
2answers
979 views

Commands for determining level of usage of server

I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage. The VM clients are a combination of RHEL and CentOS, and runs on ...
3
votes
1answer
4k views

Unable to install LAN driver in RedHat (*** /lib/modules/2.6.32-358.el6.i686/build: No such file or directory)?

I tried to install the Realtek LAN driver on my RHEL Server (running version 6.4). In the folder extracted: autorun.sh log.txt Makefile README src \>type command: ./autorun.sh \>...
3
votes
1answer
1k views

How do I edit configuration variables returned by getconf?

Specifically, I would like to edit the value of the system configuration variable ARG_MAX. (It is preset on kernels before 2.6.23 and I want to increase it.) How do I do this? Does this require ...
3
votes
1answer
1k views

SSH getting disrupted intermittently

I have Red Hat Linux Enterprise Edition 5 on my box. Recently I started having issues with my SSH service not keeping my connection and randomly disconnecting my clients. Ping works perfectly fine, ...
3
votes
2answers
72 views

Send command output to screen and syslog

I'm trying to send the output of a command to our syslog and this is what I have so far. #!/bin/bash log() { logger -s -t $(basename $0) "$@" } /bin/echo "test" 2>&1 | (log) and this ...
3
votes
1answer
22 views

White-list certain binaries and scripts inside a noexec/nosuid mount?

Just like the question. Is it possible to white-list certain executables from a noexec mounted FS? for instance, mine looks like this: /dev/vg/lv on /tmp type ext4 (rw,noexec,nosuid)
3
votes
1answer
204 views

Decoding ASN.1 messages using Openssl asn1parse tool

I am using openssl asn1parse tool over RHEL, I have my own ASN.1 abstract syntax file, called TestModule.asn1, when I am trying to parse a message using following command: openssl asn1parse -inform ...
3
votes
3answers
452 views

Why does a yum package update replaces my yum-cron config files?

Usually, when applying package updates via yum update, rpm is 'intelligent' enough to respect my changes to configuration files under /etc. (It basically looks at the mtime, compares it and depending ...
3
votes
3answers
10k views

How can I make iptables service start automatically after reboot on CenOS/RHEL7?

I am having a few issues with a newly installed home server I am preparing. I have installed CentOS7 on it and I found that port 80 and 443 are off by default. I therefore added them to the iptables ...
3
votes
2answers
14k views

Chown permission denied on owned dir

I have following directory (/usr/local) rwxr-xr-x. 43 root root 4096 Jul 25 14:19 . rwxr-xr-x. 14 root root 4096 Feb 21 10:27 .. rwxr-xr-x. 2 root root 4096 Jun 28 2011 bin [...] rwxr-xr-x 1 ...
3
votes
1answer
3k views

Upgrade a 32-bit RHEL installation to 64-bit

I recently encountered an issue where I had installed a 32-bit RHEL 6 server on a system with a 64-bit processor. I did some research and found that RHEL 6.0 has PAE enabled on 32-bit machines, which ...
3
votes
3answers
6k views

Automate DISA STIG controls for RHEL/CentOS?

I am deploying systems that must be configured using the Red Hat 6 (v1r2) Security Technical Implementation Guide(STIG) published by the Defense Information Systems Agency (DISA). Link to site. I've ...