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

learn more… | top users | synonyms (1)

0
votes
0answers
24 views

stop while booting giving error of Genetrating “/run/initramfs/rdsosreport.txt”

I am getting following error while booting my centos 7 machine Generating "/run/initramfs/rdsosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. ...
2
votes
2answers
810 views

How to set Timeout for an ssh command and also get back the result of remote commands

I have a script that runs on bash, in an RHEL server that connects to thousands of nodes and returns with the values of some 5 executed commands - It collects info from RHEL Servers only. It works ...
2
votes
1answer
1k views

SOLVED: Useradd fails: useradd: cannot lock /etc/passwd; try again later

When I attempt to add a user or delete a user, as root, I get the following error: useradd: cannot lock /etc/passwd; try again later. After looking thru many posts I don't have any of the usual ...
0
votes
1answer
33 views

rsync failing to exclude directory [duplicate]

We are using rsync to copy files from one location to another location on a different host. We want to exclude a directory from the source location so that files from this directory are not copied . ...
0
votes
2answers
56 views

My ssh key doesn't work, permissions look good [duplicate]

My permissions look like this: -rw-------. 1 smpadmin staff 400 May 21 2014 id_rsa.pub -rw-r--r--. 1 smpadmin staff 505 Dec 14 19:19 known_hosts drwxr-xr-x. 45 smpadmin staff 4096 Jan ...
1
vote
0answers
32 views

gdm Pop-Up Window on Login

So I was using a bit of bash script to get a popup window to appear on login for our RHEL 7 machines. I put the following code in "/etc/gdm/PreSession/Default". /usr/bin/zenity --warning ...
1
vote
1answer
22 views

Does “defaults” option include “acl” option in /etc/fstab?

I'm working with ACLs on CentOS 7 and noticed that the partition (/) where ACLs are applied is mounted with defaults options. As far as I know ACLs need that the acl option is enabled in the mount, ...
1
vote
0answers
25 views

sar/sysstat output logs to a 2nd directory

We're running RHEL on one server and I need to report some stats about the machine. sysstat/sar does a great job but I need the logs to report starting with 6am until next morning at 6am and output ...
1
vote
2answers
855 views

Unable to create partiton when installing RHEL 5.8

I am trying to install RHEL 5.8 on my IBM server. When I try to create a partition manually, I get the following error message. Your boot partition is on a disk using the GPT partition. How can I ...
0
votes
0answers
15 views

localize banner message on login screen in gdm 3.8 and above

I am using dconf db to set the banner message as follows: Create a gdm keyfile for machine-wide settings in /etc/dconf/db/gdm.d/01-banner-message: [org/gnome/login-screen] banner-message-enable=true ...
1
vote
1answer
995 views

Should reposync download repodata?

I am using reposync on an RHN repo. It downloads the RPMs just fine, but doesn't download repodata. I know I can run createrepo, but I'd like to keep group install info. Is this normal behavior? ...
0
votes
1answer
2k views

Port Forward :80 and :8080 to Two Different Servers

On a CentOS 6 server with an IP address of 172.16.1.10, how can I configure iptables to route traffic destined for 172.16.1.10:80 to 192.168.1.10:80, and traffic destined for 172.16.1.10:8080 to ...
0
votes
0answers
27 views

Centos 7 persistent static routes for any interface

I am trying to set up some static routes in a CentOS 7 box. The official RHEL says it is possible to add files in /etc/sysconfig/network-scripts/route-interface. This approach works, however I need ...
3
votes
1answer
32 views

Automated RPM builds

I'm making my own personal RPM repository. So far, I've built the following packages: x264 libx264 libx264-devel x265 libx265 libx265-devel lame libmp3lame libmp3lame-devel libmfx ...
0
votes
1answer
17 views

yum Invalid or prohibited port

I have an http repo on non-standard port 4080. When trying to retrieve packages list it fails: # yum install aaa Loaded plugins: security, versionlock ...
2
votes
3answers
8k views

local yum repository with grouplist not working

I am trying to create a local yum repository with group list for RHEL 6. Packages from DVD are dumped at the following location /var/www/html/rhelisos/ To create the repo, I used the following ...
0
votes
1answer
8 views

Redhat: Swap Memory Used is Much Higher Than Total

The top command showed the following information: Mem: 132110132k total, 10447536k used, 121662596k free, 76120k buffers Swap: 16777212k total, 18446744063504593392k used, 10221735436k free, ...
0
votes
0answers
9 views

Unable to jump using GDB [migrated]

I'm generally successful using GDB to debug some code - although this is the first project I've ever actually use it in anger - but one particular executable is causing me problems. It's spawned as a ...
0
votes
2answers
1k views

Installing MySQL on CentOS throws error that cannot find mysqld.sock

I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...
0
votes
0answers
27 views

How do I mount a USB external hard drive in RHEL rescue mode

I had a boot failure on a RHEL 6.2 machine and I can now only start it in rescue mode with the recovery CD. I would like to move all the data to an external USB-mounted drive but I am having problems. ...
0
votes
1answer
25 views

Are there some ways to install a smaller new linux on a older one?

The company's redhat linux is too old to install something, but it cannot be replaced with new one. I want to install some software but there are a lot of dependencies that version is too low. I want ...
1
vote
1answer
23 views

Long running script stops sending output to file

I have a script that I'm using to capture some status of the server at 10 second intervals. The script is as follows: for (( ; ; )) do /usr/local/apache/bin/apachectl fullstatus sleep 10 ...
9
votes
5answers
14k views

List all RPM packages installed from repo “X”

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
0
votes
1answer
16 views

yum update error in RHEL 5.11

http://10.91.209.2:81/builds/rhel/RHEL6.4-Server-x86_64/Server/repodata/af55926cd66a289d9c7eaf352b2ed91ca0e28f91a505fff2b5c4c7cc2f1885e0-primary.sqlite.bz2: [Errno -3] Error performing checksum Trying ...
3
votes
1answer
1k views

How do I resolve an error when booting, “Couldn't find device with UUID…”

I have a RHEL 6 system, running on a VMWare machine. The admin of the VM server added a second RAID volume to the server, which my RHEL system does not use. Now, when I boot the RHEL system, I get a ...
0
votes
1answer
39 views

%pre section of my.rpm is no longer executed on RHEL 6.7

There is a .spec file to build an rpm package for our software. In the %pre section of the .spec file there is a check if a previous major version of our software is installed. If yes, the ...
2
votes
1answer
104 views

Kickstart: is it possible to partition without a mount point?

I would like to partition a disk, but some partitions should not be mounted, so far I have to following workaround : part /srv/tmp1 --fstype=ext4 --size=1000 --ondisk=sda then in a post-install ...
0
votes
0answers
26 views

IP aliasing in Linux

The correct way to assign multiple ip addresses to one LAN card/NIC is ip aliasing such as eth-0:0 and eth-0:1. You would go and create separate network-scripts for each alias and assign a different ...
3
votes
3answers
4k views

Some Ossec agents not able to communicate with OSSEC server

I have installed Ossec on one server and agents on some other servers running on Redhat. The issue is that some servers are able to communicate and send the logs to servers and others are in INACTIVE ...
1
vote
1answer
28 views

Using Device mapper thin provisioning on loop devices

I have several KVM raw files that are read only (about 100gb). I am adding these raw files as loopback devices. I then create a snap file to allow the VM to have read/write access to its disk. This ...
0
votes
1answer
45 views

Printing text to pdf using cups-pdf doesn't work

I installed cups-pdf 3.0 beta 2 on a Redhat 7 OS. I compiled the code manually (as per the instructions on their site) after I installed cups-devel-1.6.3-17.el7_1.1. I am running ...
0
votes
1answer
881 views

RedHat init.d script will not start with service after stop

I have the service script below, which calls a shell script. We changed something in the script When I run the shell script directly, everything works fine. When I restart the servER, everything works ...
0
votes
0answers
13 views

rhel 6.x rebuild - reuse the same license files

I was wondering if it is possible to reuse the same files for reregistering a server after reinstallation. The hostname will be exactly the same: Is there any way to do that by using ...
0
votes
1answer
33 views

Steps to make a new repository work?

On RHEL7 once I had to create a new repository config file /etc/yum.repos.d/foo.repo to fetch packages from a remote server: [foo] name=Foo Repo baseurl=http://10.2.3.4/path/ enabled=1 gpgcheck=0 ...
-1
votes
2answers
38 views

after power outage no permissions to access samba share from windows machines on the same domain

I am running a ClearCase server on RHEL 6.7. We had a power outage last night (for the life of me I do not know why we don't have damn UPS). At any rate, when the machine was brought back up, we are ...
2
votes
2answers
1k views

CHROOT: Unable to copy files to jailed users directory from local machine using WINSCP

I've setup a chroot environment for one of my users called client on my system. I'm using WINSCP to connect to my server from my machine using public key authentication. Everything works fine, I can ...
1
vote
2answers
5k views

RHEL6 + Error: xz compression not available

When installing packages via yum on a RHEL Server 6.6 system, I get the following error: $ sudo yum install foo Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is ...
0
votes
1answer
48 views

Unable to resolve hostname for Redhat Linux server

I've setup a Linux RedHat server and would like to use it by referring to its hostname instead of the static IP. eg. ssh admin@myhostname.blah.di.blah, instead of ssh admin@XX.XXX.XX.XXX but I get a ...
0
votes
1answer
35 views

Java problem - RHEL

I have RHEL in a test environment and I wanted to install a program that initiates a script that mandates java. The script tests for Java binaries folder. I tried first to choose the java/bin ...
0
votes
3answers
43 views

What is the opposite of yum provides?

yum provides <command> tells you what package provides, for instance, /usr/bin/python. But how do I find out what commands are provided by a certain package?
1
vote
2answers
88 views

Centos 7 - ssh-keygen is not generating keys

sshd service doesn't start due to missing keys. When I try to generate the keys using ssh-keygen -t dsa I just get message saying: Generating public/private dsa key pair. I don't get prompt to ...
3
votes
2answers
77 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
6k 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 ...
0
votes
1answer
24 views

Logged into RHEL 6 and profile settings are missing

I know there's not much detail I'll be able to provide, but if the info below could give you a hint of what is going on, please help. A colleague was sharing screen with me yesterday, using RHEL's ...
1
vote
0answers
59 views

RHEL 7 Still CPU Frequency Scaling

When machine is imaged with: RHEL6.x CPU speeds report full 3.3Ghz speed for all CPUs cpupowerutils is not installed RHEL7.x CPU speeds vary (shown in example below) cpupowerutils is installed ...
1
vote
1answer
3k views

Init script to run a script as specific user

/apps/data/service/bin/startup.sh This is the script i want to be executed during RHEL booting. I want it to be run in runlevel 3 only. And i want this script to be started as specific user, ...
1
vote
1answer
56 views

How do I get a service on a remote CentOS 7 server to persist after I log out?

I am experimenting with running Spring Boot apps on a remote CentOS 7 web server which has been successfully serving up apps on Apache and a stand-alone tomcat instance since day one. However, when I ...
0
votes
0answers
5 views

List connected clients to an iscsi target

Is there any way to list the connected clients to an ISCSI target from another client. While sitting on the target itself , it may be easier to see which clients have mounted a particular target , ...
1
vote
0answers
27 views

Identifying disk drives during RHEL/CentOS/Fedora Installation

What steps are followed in order to identify a connected disk drive during Linux installation ? I am interested RHEL/CentOS/Fedora procedures. Is it entirely depends on the Kernel package and drivers ...
7
votes
2answers
27k views

With SSH X11 forwarding (`ssh -X`), get `Can't open display` trying to run X applications

I'm able to login to sever using ssh -X Hostip but when i run the command xclock it give me this error Error: Can't open display: localhost:11.0 I check my Display value using echo $DISPLAY ...