Post describes procedure to disable IPv6 on CentOS/RHEL 6. There are 2 ways to do this : 1. Disable IPv6 in kernel module (requires reboot) 2. Disable IPv6 using sysctl settings (no reboot required) Method 1 : using /etc/modprobe.d/ipv6.conf 1. Check if IPV6 is enabled: # ifconfig |grep inet6 inet6 addr: fe80::d6be:d9ff:fe99:5a77/64 Scope:Link inet6 addr: […]
Archives for May 2016
Netbackup Script to get client Vs policy list
Here is a small script to get the list of policies configured against a list of clients using netbackup commandline. Command used is bpplclients to get the clients. Put the list of policy in a file /tmp/policy_list. # cat /tmp/policy_list policy01 policy02 policy03 The script : for i in `cat /tmp/policy_list` do bpplclients $i -noheader […]
How to Disable or set SELinux to Permissive mode
Question : How to fully disable SELinux (Security Enhanced Linux) or set it to “permissive” mode Answer : SELinux gives that extra layer of security to the resources in the system. It provides the MAC (mandatory access control) as contrary to the DAC (Discretionary access control). Before we dive into setting the SELinux modes, let […]
How to Check whether SELinux is Enabled or Disabled
Question : How to Check whether SELinux is Enabled or Disabled Answer : SELinux gives that extra layer of security to the resources in the system. It provides the MAC (mandatory access control) as contrary to the DAC (Discretionary access control). Before we dive into setting the SELinux modes, let us see what are the […]
Downloading a Specific Version of Package and Its Dependencies from Repository for Offline Installation Using YUM
Question : How to download a specific version of the package along with its dependencies using YUM offline. Answer : 1. To see what particular versions are available to you via yum you can use the –showduplicates switch. # yum –showduplicates list [package_name] For Example : # yum –showduplicates list httpd Loaded plugins: product-id, security, […]
CentOS / RHEL : Exclusion with Yum For Kernel Updates
Question : How to make an exclusion list so that anyone running the command “yum update” will not download any kernel patches ? Answer : This can be done using 2 ways : 1. yum configuration file yum.conf (permanent) 2. Using command line options Using yum.conf 1. From the man page of yum.conf : # […]