Posts

Showing posts from October, 2016

Enable KDUMP on RHEL server

How to enable kdump on RHEL Server Pre-requisites : For dumping cores to a network target, access to a server over NFS or ssh is required Whether dumping locally or to a network target, a device or directory with enough free disk space is needed to hold the core. For configuring kdump on a system running a Xen kernel, it is required to have a regular kernel of the same version as the running Xen kernel installed on the system. (If the system is 32-bit with more than 4GB of RAM, kernel-pae should be installed alongside kernel-xen instead of kernel.) Note: The kernel need only be installed. You can continue running the Xen kernel, and no reboot is required. Installation : 1) Install the kexec-tools    yum install kexec-tools 2) Need to add boot parameters : The option crashkernel must be added to the kernel command line parameters in order to reserve memory for the kdump kernel: The following is an example of /boot/grub/grub.conf with the kdump options added for RHEL 5: # grub.conf gene

Password Banner while changing the password in Linux

One of the solutions is to create a file /etc/motd_passwd_warning with your warning. Here “Your Password Minimum Requirements”. [root@localhost ~]# cat /etc/motd_passwd_warning Your Password Minimum Requirements Then to change the /etc/pam.d/passwd in adding the following line : password optional pam_echo.so file=/etc/motd_passwd_warning [root@localhost ~]# cat /etc/pam.d/passwd #%PAM-1.0 auth include system-auth account include system-auth password optional pam_echo.so file=/etc/motd_passwd_warning password substack system-auth -password optional pam_gnome_keyring.so use_authtok password substack postlogin And that is all. Here is the result : [root@localhost ~]# passwd Changing password for user root. Your Password Minimum Requirements New password: BAD PASSWORD: it is based on a dictionary word Retype new password: passwd: all authentication tokens updated successfully Remember to leave a comment about this..