Tag: ROOT

Install EPEL Repo on a CentOS and RHEL 7.x

How do I install the extra repositories such as Fedora EPEL repo on a Red Hat Enterprise Linux server version 7.x or CentOS Linux server version 7.x? Tutorial details Difficulty () Root privileges Yes Requirements CentOS/RHEL/Fedora Estimated completion time 5m You can easily install various packages …

Installation and Setup of Free Tacacs+ server in Linux

Installation & Setup of Free Tacacs+ server in Linux (Tested via GNS3 & VirtualBox) Software Used: GNS3 0.8.3.1 -use 3700 IOS as Router & DHCP -use Ethernet switch to connect hosts -use VirtualBox guest running on Ubuntu Linux server 12.04.2 LTS http://shrubbery.net/tac_plus/ Installation: 1.Login as root …

Securing your OpenSSH server in Linux

Secure Shell (SSH) is a program used to secure communication between two entities, often used as a replacement for Telnet and the Berkeley protocols such as remote shell (RSH) and remote login (Rlogin). SSH is also used as a secure remote copy utility, replacing traditional protocols …

SSH authentication via Public/Private keys

For the tutorial “Securing your OpenSSH server in Linux” , key-based authentication is one way to secure your SSH server. Below are the details how it’s done: Users can login remotely to Secure Shell(SSH) server using public/private key without typing the password. This can put added …

Time Synchronization in Active Directory

Excuse me, do you have the time?  Well you better if you are a Active Directory administrator.  Next to DNS, time synchronization is one of the most important dependency of Active Directory.  By default, Active Directory will tolerate a plus or minus of five minutes between …

Custom snmpd extension for port checking

As weird as it sounds, recently I had a task to accomplish port checks without access to the LAN on which daemons listen for connections. Speaking of a monitoring solution, the obvious choice was SNMP, which is the most widespread means of getting health information from …

How to clone MySQL database

Here is a method to create a replica of 1 database, with all its tables and their knowledge Dump your supply database into sql file # mysqldump -uroot -p manufacturing -r manufacturing.sql If you want solely schema (database with empty tables) # mysqldump -uroot -p manufacturing …

Postfix queue monitoring script

Here is a small Perl script which can be useful as a Postfix queue monitor (count number of emails in Postfix queue) #!/usr/bin/env perl   # postfix queue/s size # author: # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133   use strict; use warnings; use Symbol; sub count { my ($ …

Partition X doesn’t begin on bodily sector boundary

If you run “fdisk -l” and also you get one thing like: # fdisk -l   ....   Disk /dev/sdb: one thousand.P GB, 1000204886016 bytes 255 heads, sixty three sectors/monitor, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector measurement (logical/bodily): 512 …