Browsing All Posts filed under »Tech News«

ACCOUNT LOCKED AFTER FAILED ATTEMPT [RHEL7]

March 13, 2019

0

ENVIRONMENT OS = RHEL 7 First one need to edit /etc/pam.d/password-auth and /etc/pam.d/system-auth and add highlighted / bold lines accurately auth required pam_env.so auth required pam_faillock.so preauth silent audit deny=3 unlock_time=600 auth sufficient pam_unix.so nullok try_first_pass auth [default=die] pam_faillock.so authfail audit deny=3 unlock_time=600   Then you need to add below line under account section at […]

RESTRICT SPECIFIC USER TO SU THE ROOT USER [RHEL7]

March 13, 2019

0

ENVIRONMENT OS = 7.3 redhat STEP-1 Open the file /etc/pam.d/su in vi or ay file editor and add the below line. vi /etc/pam.d/su auth      required      pam_wheel.so use_uid root_only use_uid group=groupa STEP-2 Ensure that the user who you want to su to the root user is the member of groupa.

HOW TO HA A REDIS APPLICATION [Master/Slave] THRU PACEMAKER

January 4, 2018

0

ENVIRONMENT OS = RHEL 7.4 Total HA nodes = 2 ENVIRONMENT DETAILS In this environment pacemaker is installed on both machines. Redis is installed on both machines. A Master/Slave resource group is created. 2 HA heartbeats are configured thru corosync. SUPPOSED ENVIRONMENT ACTIVITY vi /etc/redis.conf bind 0.0.0.0              # This will make sure that redis will […]

How to grep commands output in windows | grep command for windows

January 12, 2017

0

How to grep commands output in windows   If you want to grep specific output, use find command. Find below examples for reference.   netstat –n –a TCP   192.168.32.241:56847   40.77.226.192:443                 ESTABLISHED TCP   192.168.32.241:56870   40.77.229.39:443                    ESTABLISHED TCP   192.168.32.241:56873   40.77.229.64:443                  ESTABLISHED TCP   192.168.32.241:56925   108.160.172.204:443            TIME_WAIT TCP   192.168.169.1:139         0.0.0.0:0                                    LISTENING TCP   192.168.234.1:139     […]

Find out CPU, Sockets & Cores

August 18, 2016

0

Environment OS = Redhat Enterprise Linux Version = 5.9 Find out total CPUs & Sockets dmidecode |grep -i cpu Example output: dmidecode |grep -i cpu Version: Intel(R) Xeon(R) CPU E5530 @ 2.40GHz Version: Intel(R) Xeon(R) CPU E5530 @ 2.40GHz Description Above command output shows total sockets i.e., 2 and total CPU/processors installed i.e., 2 OR […]

GlusterFS (File System) Installation and configuration on RHEL/CentOS and Fedora (REPLICA Environment)

May 29, 2015

0

Creating GLUSTER was never too easy like I mentioned below. Follow my article Environment Centos 6.3 Nodes = 2 selinux = disabled Add host file entries on both nodes # yum install glusterfs-server # service glusterd start # service glusterd status # Create directories with same names on all servers # mkdir -p /data/brick1/gv0 # […]

MOBILE BANKING ADDICTION

March 16, 2015

0

The constant transformation of communication is changing in today’s world that how people interact with others. Today everyone seems connected digitally. When it comes to pay the ground breaking change was noticed since the Plastic card was introduced. The quick adoption of plastic card was convenience to use. In this century convenience is the only […]