Questions tagged [redhat]

Red Hat is an open source technology solutions provider with offerings including Red Hat Enterprise Linux, open source applications, security and systems management, virtualization, Services Oriented Architecture (SOA) solutions, server and desktop operating systems, Java application software and services, and the JBoss Enterprise Middleware Suite. Please also consider whether or not the more specific RHEL5 or 6 tags might be appropriate as well.

Filter by
Sorted by
Tagged with
12 votes
8 answers
4k views

Is there a program like WinDirStat for RedHat?

I'm running out of disk space on one of our Linux servers and I need to find out what is taking up all the space. TIA
ThingsToDo's user avatar
12 votes
2 answers
15k views

What are the "actual" differences between CentOS, RHEL, and OEL?

Several applications require a specific release of Linux on which to run, such as RHEL 5 x64, Update 4. Theoretically, CentOS 5.4 x64 should be exactly the same as the RHEL variant - since the CentOS ...
warren's user avatar
  • 18.7k
12 votes
1 answer
100 views

PHP Hostname not correct

We have an application that has been running for about 2 years now without any issue. This morning when I came in the site was getting an error: Session: connection failed I checked the database ...
Anthony Fornito's user avatar
12 votes
4 answers
6k views

Who is the behind Webtatic repository and do you trust it

Webtatic repository has lots of useful packages for CentOS and RedHat. However the repository is very opaque and I have hard time to find information of who is behind it, appart of "Andrew Thompson", ...
Niki's user avatar
  • 221
12 votes
2 answers
16k views

How to do client side NFS failover in Linux?

I have a CentOS 6.3 client that needs to access NFS storage. There are two NFS servers that serve up the same content stored on a SAN with a clustered filesystem. How do I set up CentOS to failover ...
Doug's user avatar
  • 361
12 votes
5 answers
47k views

SSH hangs after authentication

When logging in to one of my servers over ssh, it just hangs after authentication. This is the output on the client with -v. OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading ...
andrewrjones's user avatar
12 votes
3 answers
3k views

on Red Hat Enterprise and CentOS, what is creating /var/run/reboot-required?

On CentOS 5.8+ and Red Hat Enterprise 6+, when installing/updating packages, I notice a flag file /var/run/reboot-required is created when appropriate. On Ubuntu (and Debian too, I'm guessing), if ...
EdwardTeach's user avatar
12 votes
2 answers
23k views

Running arbitrary program as daemon from init script

I need to install a program as a service in Red Hat. It doesn't background itself, manage its PID file, or manage its own logs. It just runs and prints to STDOUT and STDERR. Using the standard init ...
user avatar
11 votes
4 answers
3k views

Does SELinux make Redhat more secure?

Does SELinux make Redhat more secure? I can't remember the number of times when I have disabled SELinux because it kept frustrating my ability to get stuff running. Lots of times to there was no ...
vfclists's user avatar
  • 1,652
11 votes
3 answers
15k views

RHEL 6.4: Mode 1 channel bonding not failing over

I'm running RHEL 6.4, kernel-2.6.32-358.el6.i686, on an HP ML 350 G5 with two onboard Broadcom NetXtreme II BCM5708 1000Base-T NICs. My goal is to channel bond the two interfaces into a mode=1 ...
Wesley's user avatar
  • 32.8k
11 votes
7 answers
59k views

Find MAC addresses in /proc or somewhere despite bonding device?

Is there a way to get the original MAC addresses for eth0 and eth1? A large array of servers have bonding interfaces managing backup switch connections and one is misbehaving. With bond0 active both ...
DigitalRoss's user avatar
11 votes
4 answers
54k views

Importing ca-certificate chain (.crt) - RHEL7

I am fairly new to this but I've done some internet research the last 2 days and I couldn't find an suitable answer. I have been given a ca-certificate chain (cacertchain.crt) which I need to import ...
daelas's user avatar
  • 331
11 votes
1 answer
12k views

Best way to make RHSCL PHP available globally

I have installed RHSCL 2 using the following url: https://access.redhat.com/documentation/en-US/Red_Hat_Software_Collections/2/html/2.0_Release_Notes/chap-Installation.html using the RedHat ...
Ozzy's user avatar
  • 113
11 votes
2 answers
48k views

Determine the default character encoding in a RedHat system

How do I determine the default character encoding in a RedHat system using the command line? I just want to know what encoding a Java app would use per default if none is specified
victor hugo's user avatar
11 votes
1 answer
7k views

SFTP - whitelisting requests for read-only access

I am trying to white-list certain SFTP requests so that a user can only open and read files and folders. Currently I have this, based on this thread: Subsystem sftp internal-sftp Match User my-read-...
silent's user avatar
  • 432
11 votes
1 answer
13k views

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on /dev/...
ujjain's user avatar
  • 4,033
11 votes
2 answers
3k views

Redhat 7 desktop to workstation

I installed a RedHat out of an installation cd, registered my entitlements, all that stuff. As part of my subscriptions I have both Red Hat Enterprise Linux Workstation and Red Hat Enterprise Linux ...
Lorenzo Boccaccia's user avatar
11 votes
1 answer
5k views

Linux - if I change the hostname, which services need to be restarted?

I'm making some system hostname changes across a few environments and this got me thinking... When I change a server's hostname (live), what needs to be modified and which system services require a ...
ewwhite's user avatar
  • 198k
10 votes
4 answers
15k views

How do I get ec2 Linux instance info while logged-in on the command-line (public dns, AMI, etc.)

I want some way of identifying which instance that I'm on when I ssh into a Linux ec2 instance. I would like to be able to uniquely identify the instance from the command-line and correlate this to ...
Rob Bednark's user avatar
10 votes
5 answers
14k views

How do I install a yum package group with puppet?

Does puppet have a way to install a yum package group (e.g. 'Development Tools'), besides exec?
joeforker's user avatar
  • 2,409
10 votes
6 answers
105k views

How to install gparted on CentOS

I tried yum install gparted It says no package found. Can I install rpm packages in CentOS or is that only for RedHat? I mean, if I have rpm for RHEL, can I install it on CentOS 5?
user avatar
10 votes
1 answer
26k views

What is nsswitch compat mode?

Red Hat recommended me compat mode in /etc/nsswitch.conf as one of the options to enumerate LDAP users, but later said that it's not a much-used method. nsswitch.conf passwd: files compat ...
ujjain's user avatar
  • 4,033
10 votes
2 answers
11k views

Run as different user

On a RedHat system, i'm trying to launch a program with a different user who dont have any shell. In /etc/passwd, shell is /sbin/nologin. I have tried: su myuser -c /home/myuser/script.sh Result: ...
Karl's user avatar
  • 103
10 votes
4 answers
22k views

How to fine tune TCP performance on Linux with a 10Gb fiber connection

We have 2 Red Hat servers that are dedicated for customer speedtest. They both use 10Gb fiber connections and sit on 10Gb links. All network gear in between these servers fully support 10Gb/s. Using ...
user53029's user avatar
  • 649
10 votes
1 answer
80k views

What is the difference between init 6 and reboot on Red Hat / RHEL / CentOS?

In Linux, the init 6 command gracefully reboots the system running all the K* shutdown scripts first, before rebooting. The reboot command does a very quick reboot. It doesn’t execute any kill ...
ujjain's user avatar
  • 4,033
10 votes
1 answer
17k views

Move space from one volume to other

I have one setup where / has 50G space. I want to increase space for /. [root@testsyst ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_testsyst-lv_root ...
Nilesh's user avatar
  • 255
10 votes
5 answers
39k views

NTP local query always times out

I have a CentOS 6.4 server, it does not have any iptable rules, it runs NTP daemon as service using the following configuration: driftfile /var/lib/ntp/drift server 0.pool.ntp.org server 1....
Howard's user avatar
  • 313
10 votes
2 answers
23k views

What are the disadvantages of disabling tinker panic 0 in NTP?

We sometimes have the problem that new servers have the wrong time in the bios, so there time can be off by a month. When you suspend a VM in VMware and then unsuspend it, the time will be off too. ...
ujjain's user avatar
  • 4,033
10 votes
1 answer
12k views

Configuring Transparent Hugepages; [always], [madvise], or [never]

We have a bunch of general purpose Centos 7 LAMP stack servers that run apache with underlying MariaDB databases. From the RedHat Performance Tuning docs for RHEL 6: Trasparent Hugepages (THP) ...
Arth's user avatar
  • 395
10 votes
2 answers
42k views

Changing boot device for a QEMU-KVM virtual machine

I am trying to change the boot device for a VM. I go to the VM's XML file in /etc/libvirt/qemu and set <boot dev='cdrom' />. Still, it attempts to boot from the harddrive instead of the cdrom. ...
Belmin Fernandez's user avatar
10 votes
3 answers
16k views

How to get cpio (gnu, rhel 4) to extract to a specified directory?

Reason is I want to make a tidy script instead of cd /some/dir cpio -whatever<somefile cd -
Erik I's user avatar
  • 503
10 votes
4 answers
44k views

DEFROUTE vs GATEWAY in RHEL7

I've disabled Network Manager and I'm using ifcfg- scripts for network configuration. And I'm trying to find the difference between DEFROUTE="yes" and GATEWAY options. I understand that "ifcfg ...
Roman_T's user avatar
  • 341
10 votes
2 answers
5k views

How does yum with Red Hat Network Subscription work inside the rhel Docker images?

Red Hat Enterprise Linux 7 includes official support for running Docker containers, and Red Hat offer a set of official rhel Docker images. An interesting feature of these images is that packages can ...
Leynos's user avatar
  • 216
10 votes
1 answer
14k views

What is the recommended method to prepare Red Hat/CentOS 7 templates?

If I need to deploy Red Hat 7 from template, I would like to take the recommended steps to make my "golden image" clean. It should boot to the first boot prompt and guide the user through the typical ...
Aaron Copley's user avatar
  • 12.7k
10 votes
0 answers
2k views

CentOS 6 local update repository and security updates

I know that official CentOS 6 (even 7) update repositories does not provide security information. The consequence is thatyum-plugin-security plugin and yum check-update --security command does not ...
dsmsk80's user avatar
  • 5,937
10 votes
4 answers
3k views

yum-security for CentOS?

Last time I checked I was able to install yum-security in CentOS but since it doesn't use the official redhat mirrors I was unable to get it to actually work. Is there a way to make yum-security work ...
Jared's user avatar
  • 1,420
9 votes
3 answers
89k views

How to find out who rebooted LINUX server

Someone restarted our Linux server and I want to find out which user did it. There might be multiple users on this server with sudo privileges, is there any specific log file which keep track of user ...
DevOps_101's user avatar
9 votes
3 answers
37k views

What is the difference between RHEV and oVirt?

When I read the wikipedia articles about RHEV and oVirt, I can't really figure out why Red Hat have both projects, as they seam to solve the same problem? http://en.wikipedia.org/wiki/RHEV http://en....
Sandra's user avatar
  • 10.5k
9 votes
5 answers
38k views

Why does Red Hat Linux report less free memory on the system than is actually available?

I have a relatively small home Red Hat Linux server (about 8 GB RAM). I don't use it for much other than running some home grown apps to keep track of various things. The only real things running on ...
Aaron K's user avatar
  • 1,525
9 votes
5 answers
779 views

Would you run RedHat 4.4 on a new server?

I have a hosting company that has setup a new server for me, but I noticed it was running RedHat 4.4 which I am worried about being such an old version. When I inquired about running an old version, ...
bmaynard's user avatar
  • 267
9 votes
6 answers
203k views

How to allow wget to overwrite files

Using wget command, how do I allow/instruct to overwrite my local file everytime, irrespective of how many times I invoke. Let's say, I want to download a file from the location: http://server/folder/...
Gnanam's user avatar
  • 1,479
9 votes
4 answers
43k views

On AWS do I have to open ports in an EC2 instance's firewall as well as security group?

If I change my SSH port from 22 to 23453, I can no longer ssh in. In more detail, I'm using a Red Hat EC2 instance on Amazon Web Services. This is the second change I've on a fresh install (first ...
vowel-house-might's user avatar
9 votes
6 answers
26k views

Examining Multiple Ports When Running NetCat (nc)

I am looking to test if specific ports are on a host are open. I am using: nc -z host 22 nc -z host 80 nc -z host 443 nc -z host 8080 which works, but it would be nice to use a one-liner like: nc -...
KM.'s user avatar
  • 1,796
9 votes
2 answers
33k views

How do I set the default kernel parameters in CentOS for all existing and future kernels?

I'd like to remove the rhgb and quiet kernel parameters which are used by default when the kernel is booted in CentOS 6, but I want this to apply to all currently installed kernels as well as any ...
mgorven's user avatar
  • 31k
9 votes
3 answers
21k views

How to sort top result on virtual memory on Redhat Linux?

There is an interactive key "M" to sort by memory, which seems to be sorting on resident memory. Is there a way to sort on virtual memory? I happen to be working on Redhat Linux, but the question is ...
timeon's user avatar
  • 193
9 votes
2 answers
23k views

On Redhat, what does "kernel.suid_dumpable = 1" mean?

I'm running a bash script to copy some log files and then restart a service on a Red Hat box. Every time I execute the script, I get the following on my console: [root@servername ~]# sh /bin/...
IVR Avenger's user avatar
9 votes
4 answers
26k views

"service"-command and environment variables

I am trying to start a service that requires a env. variable to be set to certain path. I set this variable in "/etc/profile.d/". However when I start this service using the service command, it doesn'...
Esa Varemo's user avatar
9 votes
6 answers
92k views

How do I check if a port is open on Red Hat Linux/CentOS

I've written a program that is suppose to implement SLP (rfc2608) and I'm having trouble testing it. I'm not sure if the port is closed or there is something out there dropping my multicast datagrams....
Jason Thompson's user avatar
9 votes
4 answers
6k views

Implications of using VMware's templating and cloning for provisioning Linux servers instead of PXE

There seems to be speed benefits when using VMware's templates to create new VMs. However, I'm concerned about possible less obvious security and flexibility implications. For e.g.: First boot ...
Belmin Fernandez's user avatar
9 votes
1 answer
36k views

Cannot find open shared object file libjli.so -- no such file or directory

On 64-bit RHEL5 running Java 1.6.0 update 16, root can successfully run a Java program but a user can't because libjli.so supposedly can't be found. SELinux is turned off and the environment is the ...
joeforker's user avatar
  • 2,409

1 2
3
4 5
66