Questions tagged [rhel6]

Red Hat Enterprise Linux version 6 is a Linux distribution sold by Red Hat, Inc. for the enterprise market. It is used for both servers and desktops. Although the binaries are not freely available, the sources are, and so there are numerous projects which provide compatible rebuilds of RHEL, such as CentOS and Scientific Linux.

515 questions
5
votes
6 answers

Reloading a kernel "live" in CentOS / RHEL 6

When upgrading the kernel package on CentOS or RHEL 6, is it possible to load the new kernel without rebooting? My gut tells me it's not, but if it were, it'd be handy - especially when compiling applications that require kernel modules (like…
warren
  • 18,369
  • 23
  • 84
  • 135
5
votes
2 answers

Should swap space be in a logical volume, or directly on disk?

What are the benefits of putting swap into a logical volume over using direct disk access? For example, with a fresh, default install of RHEL5 or 6, a volume group is created on the default disk along with one other small non-logical partition (for…
warren
  • 18,369
  • 23
  • 84
  • 135
5
votes
2 answers

CentOS 6 in production

All of my virtual servers are on Centos 5.5. Now I am deploying new one and there is a new OS option: CentOS 6. I like new software, and I prefer to use new versions (but not the edge). So, as far as I am not an administrator and my apps are not…
fl00r
  • 575
  • 2
  • 7
  • 20
5
votes
5 answers

RHEL 6 x64: running 32 bit applications

We develop an application which currently works in 32 bit mode only. It worked fine in RHEL 5 but failed to work in RHEL 6. The reason is RHEL 6 by default is installed with 64 bit libraries only. Moreover, we didn't find a way to choose…
user54614
  • 379
  • 2
  • 6
  • 18
4
votes
2 answers

free reports bogus amount of swap used

The swap used reported by free is very high. [root@rhel6 ~]# free -m total used free shared buffers cached Mem: 9892 9537 354 0 71 884 -/+ buffers/cache: 8581 …
4
votes
1 answer

Audit logs are not being generated on linux machine

Hi We are using four linux servers for on application. Application just simply generates reports using scripts... Now for three servers audit logs are being generated in /var/log/audit directory (as below) but for one server no logs are being…
4
votes
1 answer

Cron job as root need to sudo to another user

RHEL6 In root's crontab a have: * 21 * * * /root/script.sh In script.sh there is a line: /usr/bin/sudo -u jira bash -c 'cd /opt/jira/bin; ./stop-jira.sh' && echo "Jira Shut Down" >> /root/debuglog The command executes in a regular shell but not when…
Codefire
  • 43
  • 1
  • 1
  • 5
4
votes
1 answer

How can I force sudo to accept a user's AD password on RHEL6

In our environment we do not join Linux boxes to the Microsoft Domain. We do however setup Kerberos. This allows us to log into the boxes using our AD credentials as long as there is a local account with the same name. However, when I use sudo it…
CJONES
  • 317
  • 2
  • 11
4
votes
1 answer

How to configure the bridge over bonding in RHEL 6.4 Server?

Has installed a system (rhel-server-6.4-x86_64-dvd.iso). KVM over which set. The host machine and the guest-machine assigned its own IP-address, configured for this bridge br0. Everything works. Now we must make a bridge over bonding. Put on the…
abg
  • 163
  • 2
  • 5
4
votes
1 answer

Can't make SELinux context types permanent with semanage

I created a new folder at /modevasive to hold my mod_evasive scripts and for the Log Directory. I'm trying to change the context type to httpd_sys_content_t so Apache can write to the folder. I did semanage fcontext -a -t "httpd_sys_content_t"…
Safado
  • 4,786
  • 7
  • 37
  • 54
4
votes
2 answers

How to detect if mount point exists from init.d script?

After a reboot, I'm executing an application from a mounted network share (autofs) using an init.d script. The script starts by waiting 30 seconds before attempting to execute the command, in order to wait for the network/mount point to be up. I…
fredrik
  • 731
  • 15
  • 20
4
votes
3 answers

Why is RAM usage so high on an idle server?

I'm investigating a server used for scientific data analysis. It's running RHEL 6.4 It has almost 200GB of RAM. It's been running very slowly for users via SSH, and after some poking around I quickly noticed that the RAM usage was sky-high. What's…
DeeDee
  • 333
  • 2
  • 7
  • 16
4
votes
2 answers

Dangers to giving Apache user a shell

tl;dr - What are the dangers of giving Apache a shell in /etc/passwd? I'm working on getting mod_evasive set up with Apache to fight DOS attempts. I use the DOSSystemCommand to run a script that adds the offending IP address to a BANNED chain in…
Safado
  • 4,786
  • 7
  • 37
  • 54
4
votes
1 answer

Is there an equivalent to Debian's cli/php.ini on Redhat?

How do you configure the command line version of PHP to have different settings on a Redhat system? On Debian based systems, php has a separate command-line version config file: /etc/php5/cli. On Redhat, there's /etc/php.ini and various additional…
Zxaos
  • 496
  • 3
  • 6
  • 18
4
votes
3 answers

Home directories created with wrong Selinux context

[root@tst-01 home]# ls -Z drwxr-xr-x. ujjain users system_u:object_r:home_root_t:s0 ujjain drwxr-xr-x. johndoe users system_u:object_r:home_root_t:s0 johndoe The selinux context should be object_r:user_home_dir_t.…
ujjain
  • 3,983
  • 16
  • 53
  • 91