≡ Menu

rhel 5

HowTo: Prevent Yum From Upgrading The Kernel On a CentOS / Red Hat Enterprise Linux

I am a new RHEL / Centos Linux server admin. I would like yum to update all packages except the Linux Kernel. How can I prevent yum command from updating kernel on a CentOS/RHEL/Fedora Linux based systems?
[click to continue…]

Change Password Using passwd Command Over SSH Based Session

I'm a new Ubutnu Linux user. I backup files to our corporate Unix backup server using the rsync command. The server only allow to upload/download files. I am unable to login to the server. How do change my password using the passwd command over ssh based session?
[click to continue…]

yum Command: List The Contents (Files) Of A Package

The rpm -qi command list the files of a package. How do I use yum command to list the contents of a package under CentOS or RHEL installed on IBM server hardware?
[click to continue…]

HowTo: Listen Pandora In Europe ( Outside USA )

I have Pandora Internet Radio One subscription, and recently I moved to Europe for a few months as part of my work schedule. The service fully available only in the United States. How do I access Pandora one service in Europe? Can I get around it by using a proxy server installed on my own server located in USA at home or ISP data center?
[click to continue…]

CentOS / RHEL: Disable or Enable SELinux Policy Modules

How do I disable or enable SELinux policy modules under Red Hat Enterprise Linux running on Dell hardware?
[click to continue…]

CentOS / RHEL: Change / Copy File SELinux Security Context Command

I've created a file as follows:

ls -l -Z /etc/cron.d/vnstat
-rw-r--r--. root root system_u:object_r:system_cron_spool_t:s0 /etc/cron.d/vnstat

I've created a new file /etc/cron.d/vnstat.custom.interface:

ls -l -Z /etc/cron.d/vnstat.custom.interface
-rw-r--r--. root root unconfined_u:object_r:system_cron_spool_t:s0 /etc/cron.d/vnstat.custom.interface

The /etc/cron.d/vnstat is part of default vnstat package. I've installed my own version of the same. But, due to SELinux security cron job is not running. How do I change file SELinux security contex under RHEL / CentOS 6 Linux server to system_u:object_r:system_cron_spool_t:s0 from unconfined_u:object_r:system_cron_spool_t:s0 for /etc/cron.d/vnstat.custom.interface file?
[click to continue…]

RHEL / CentOS Yum Command: Blacklist Packages [ Disable Certain Packages ]

How do I force yum command to disable certain packages from being installed using certain repos such as EPEL under RHEL or CentOS Linux 6.x server?
[click to continue…]

memcached: Failed To Set rlimit For Open Files Error and Solution

I'm using RHEL 6 / CentOS 6.x and install the memcached server. However, whey I try to start the server using service memcached start command, I get the following error:

Starting memcached: failed to set rlimit for open files. Try running as root or requesting smaller maxconns value. [FAILED]

How do I fix this problem?
[click to continue…]

RHEL / CentOS Linux: Mount and Access NTFS Partition

How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6?
[click to continue…]

Linux Deleting Firewall Rules

I would like to to delete my iptables based firewall rules under Linux. How do I delete rules individually or all at once under CentOS or Fedora Linux or RHEL based servers?
[click to continue…]