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 ...

learn more… | top users | synonyms (1)

4
votes
7answers
367 views

List of tools you install on your debian/red-hat server

Here in a list of tools I install after a fresh install (debian most of time): logcheck: to check the log files and generate reports apticron: send me e-mails when packages updates are available ...
4
votes
4answers
39k 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?
4
votes
4answers
957 views

Accidentally ran chmod 775 -R / (not ./) on linux server (RedHat)

I accidentally ran "chmod 775 -R /" instead of "chmod 775 -R ./" and changed the permissions for everything and now the server is broke. Anyone know how I can quickly fix this???
4
votes
5answers
3k views

Script to delete files older than 30days

Shell script should not delete any files under* root dir*. My* path will be like /export/home/ftp/ ... I did some research and figured out the way for finding and deleting the files older than 30 ...
4
votes
3answers
4k views

Understanding RedHat's recommended tuned profiles

We are going to roll out tuned (and numad) on ~1000 servers, the majority of them being VMware servers either on NetApp or 3Par storage. According to RedHats documentation we should choose the ...
4
votes
2answers
7k views

How to get ldapsearch on Scientific Linux?

How do I get the ldapsearch on Scientific Linux? I am trying to find the ldapsearch client for Scientific Linux but cannot find how to install the client in order to do LDAP queries.
4
votes
2answers
263 views

Which Red Hat / CentOS updates should be applied and on what schedule?

I'm subscribed to the CentOS-announce mailing list and I've read the definitions of the various severity tags such as Critical, Important, Moderate, Low, BugFix, etc. but I'm still unclear as to what ...
4
votes
3answers
7k views

Adding an existing user to a group with puppet

Is it possible to add an existing user to a group with puppet 2.7.18? We have two modules, each one defines one class : module "user" creates all users, including user foo and user bar. module ...
4
votes
5answers
2k views

Reboot fails on RHEL 6.1 after kernel update on Amazon EC2

Everytime I start a new RHEL instance, I like to perform a yum update to start with the most up-to-date system. However, everytime I try to reboot the instance after that, the instance never goes ...
4
votes
3answers
137 views

versioning system with less duplication of data

We have a homegrown config management system and we'd like to add config file versioning to it in a simple way. My first thought was svn (or similiar), but I'm concerned with creating a repo in one ...
4
votes
2answers
6k views

How do you only tar files in a directory based on a specific file name?

I want to create a tar ball and include only the files in the directory that start with a specific filename. For instance I have apples-x.x.x and oranges-x.x.x, and I only want to tar the files ...
4
votes
3answers
6k views

How do I export and restore my iptables settings?

I have what appears to be weird and convoluted set of rules which work for me at the moment. Is there a way of "exporting" those and saving them to a file so that they can be restored later on in case ...
4
votes
4answers
1k views

yum claims python isn't installed

Trying to install collectd, but for some reason it claims python isn't installed: yum install collectd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Setting up Install ...
4
votes
2answers
760 views

sudo -i but keep current working directory

When use sudo -i I will simulate login as root, and current working directory will be jumped to /root. Is it possible not to jump and keep the working directory unchanged?
4
votes
2answers
2k views

VMXNET3 performance on Linux on ESX 5.0

What kind of performance can I expect from VMXNET3 adapter when running two Linux guests on the same VMware ESX private network defined between those guests? I use VMXNET3 adapter for communicating ...
4
votes
2answers
335 views

RHEL: What happens when memory starts to fail?

I'm getting ecc warnings from some server RAM. It's a pretty old machine so there isn't any warranty on these parts. If this were Windows I would expect to see BSOD. What can I expect from RH5.x?
4
votes
3answers
622 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 ...
4
votes
2answers
5k views

Enforcing that passwords contain a certain mixture of characters on Red Hat Linux or CentOS

On Red Hat Linux or CentOS, how can one enforce that passwords consist of a mixture of alphabetical and numerical or special characters?
4
votes
4answers
331 views

How do I Control the Ordering of Network Interfaces?

I'm attempting to configure a machine with 3 NICs, the first two are built-in GbE controllers, the third is a 10GbE controller. Via NetworkManager, I've configured the 'first' GbE NIC (which at the ...
4
votes
2answers
203 views

Switching yum from RHEL to .. something else? [duplicate]

My various managers have decided that it's too expensive to keep paying for a subscription to the RedHat network for OS updates. Is it possible to switch to Fedora/CentOS or do I need to reinstall the ...
4
votes
1answer
172 views

Convert Oracle enterprise to redhat

Has someone converted successfully a running Oracle Enterprise Linux server to redhat enterprise and was able to register it on RHN network? Tried to install kernel from redhat, updated the rhnsd ...
4
votes
3answers
575 views

SFTP access akin to jailed shell

I have a question about creating a user with sort of jailed shell access (actually all is required of this user is an sftp access to one particular directory). Scenario is as follows - I have an ...
4
votes
1answer
325 views

`ls` causes Segmentation Fault on a specific directory

I used $HOME/.local as prefix to install some applications without root access. There is one directory inside $HOME/.local that I can't execute ls command: [tuananh@server lib]$ ls Segmentation fault ...
4
votes
1answer
864 views

Interpreting Munin graphs showing available entropy and MySQL slow queries in sync

We're experiencing performance issues on our website, and after reviewing our munin graphs, the only metrics we've found in sync are Available entropy and MySQL slow queries, with the latter ...
4
votes
1answer
163 views

How can I remove “Red Hat Network Code” from the RedHat?

The question is: How can I remove "Red Hat Network Code" from the system and what this "Network Code" actually is? The background of this question is related to the RedHat subscription as according ...
4
votes
3answers
2k views

Update Red Hat Enterprise Linux's Packages Only To Specific Point Release

Let's say that I have one RHEL6.2 64bit server running. Current latest version available is 6.4. Running "yum update" will update my server up to 6.4 straight away. What if I want to update only to ...
4
votes
1answer
2k views

Debugging fstab problems on reboot

After a reboot, some partitions which were mentioned in fstab were not mounted as expected. The format of the line for the partitions which were mounted correctly and those which were not mounted ...
4
votes
1answer
6k views

How do you create an ssh key for the apache user on Redhat?

As the question asks, how do I generate an ssh key for the user apache on Redhat? My use case, is that we have a mercurial server running under the apache user. We also have several web servers ...
4
votes
3answers
3k views

Changing the timezone on a RHEL5/CentOS system

How do I change the timezone on a RHEL5 system? I'm reading the instructions here - http://www.cyberciti.biz/faq/howto-linux-unix-change-setup-timezone-tz-variable/ But they seem very bold (altering ...
4
votes
3answers
9k views

How to Update Red Hat Enterprise Linux 5.4 using CentOS Repos

I don't have a subscription for RHEL anymore and I want to update my server. Can anyone tell me How to Update Red Hat Enterprise Linux 5.4 using CentOS Repos ?
4
votes
2answers
1k views

How to Increase the Size of an XFS File System?

I just created an Amazon AWS EC2 instance running RHEL7: [root@ip-10-184-161-46 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) [root@ip-10-184-161-46 ~]# And even ...
4
votes
2answers
602 views

Resizing of volumes used as VMWare NFS datastores causes Linux VM issues

We had to perform a live volume resize of an NFS datastores VMWare uses on our Netapp. All of our Windows VMs were fine after the resize. However, some of our Linux VMs had issues. Some Linux VMs ...
4
votes
1answer
722 views

Varnish does not recognize req.hash

I have Varnish 3.0.2 on Redhat and service varnish start fails after I added vcl_hash section. I did varnishd and then loaded the vcl using vcl.load vcl.load default default.vcl Message from ...
4
votes
1answer
1k 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 ...
4
votes
3answers
1k views

Yum: What is the @shortname for a Package Group?

I am creating a kickstart file, and I want to install certain Package Groups in the %packages section. I prefer to install Package Groups, and therefore use the @packagegroup syntax: %packages @Base ...
4
votes
2answers
5k views

Configure a DNS server per nic interface (eth0 / eth1)?

How would you configure a DNS Name Server per NIC (eth0 vs eth1) interface on RHEL/Centos 6? E.g. eth0 is on subnet 10.0.0.1/24 eth1 is on subnet 192.168.0.1/24 Any requests sent over ...
4
votes
1answer
145 views

NIC reporting as devXXXX and not ethX

We recently noticed our 10gE NIC was reporting as devXXXXX. Does anyone know why this would be given this name as opposed to ethX? Our System: The issue occurred on two separate servers. We are ...
4
votes
1answer
141 views

SELinux: How to show all allowed rules for a type?

For an arbitrary object type, e.g. user_tmp_t, I want to know which processes are allowed to access this tag. How do I find all allow rules that reference user_tmp_t?
4
votes
1answer
691 views

Mounting a disk from SAN (RHEL 5.9)

Storage admin told me he put a 3TB drive on my server from the SAN and I was asked to mount it. The only information I know is that it's on LUN 1 and that the disk is 3TB. Multipath is setup and I ...
4
votes
2answers
644 views

Is It Possible to set cpu affinity for particular user?

I mean is their any way we can set up cpu affinity for particular user, for all his currently running process or for process which he will start later?
4
votes
3answers
10k views

How do I get PHP 5.3 working on Red Hat Enterprise Linux, with PDO enabled? PHP53 was installed with yum

This problem is complicated, and I'm not an expert at all, so bear with me. My server admin team set me up with a standard RHEL box. It had PHP preinstalled, as well as apache. I am now trying to ...
4
votes
1answer
1k views

How to tweak Gnome user elevation in RHEL/CentOS

So I am attempting to tweak the way GNOME authenticates a desktop user for privileged applications. Out of the box it asks for the root password. For my deployment this is undesirable and I want it ...
4
votes
3answers
1k views

Linux CUPS auto re-add printer?

We have a Redhat machine (2.6.9-42.ELsmp) that runs CUPS. Once in a while, people send big files to the printer, and it gets stuck, so they restart the printer. After 300 seconds of it not responding, ...
4
votes
1answer
103 views

Practical ulimits

One of the projects I'm working on is moving certain puppet-applied ulimit settings away from "that sounds about right" to dynamically allocated based on the environment. This is for ...
4
votes
2answers
1k views

Avoid file conflict in rpm package

I have created a rpm package.The part of .spec file is below %install mkdir -p ${RPM_BUILD_ROOT}/etc/xyz cp -rf %{BDIR}/console ${RPM_BUILD_ROOT}/etc/xyz %files /etc/xyz/console So XYZ ...
4
votes
3answers
3k views

Methods for analyzing Red Hat sosreport output?

For some time (since EL 4.6), Red Hat has embedded a system report and troubleshooting tool into the operating system. The tool, sosreport, collects system information and settings and bundles it into ...
4
votes
3answers
721 views

%post section of rpmbuild not working

Situation: I'm trying to build a custom rpm to place a config file in a particular location. The installation completes fine by placing config files in proper directories but the %post section is not ...
4
votes
1answer
401 views

Limits to NFS share sizes

I want to build a bare-metal RHEL box connected to an FC-array that's presenting it a ~16TB LUN, I can format this LUN any way I like (might choose XFS) but I then want to share this volume out to a ...
4
votes
1answer
19k 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 ...
4
votes
1answer
773 views

RHEL6: Tomcat runs as unconfined Java user

I'm starting to configure RHEL6 to be a hardened Tomcat server and applying SELinux policies for access control. After installing RHEL6 and Tomcat6 (standalone, no httpd), I noticed that the Tomcat ...