logs

Review Logs Regularly Move logs in dedicated log server, this may prevents intruders to easily modify local logs. Below are the Common Linux default log files name and their usage: /var/log/message – Where whole system logs or current activity logs are available. /var/log/auth.log – Authentication logs. /var/log/kern.log – Kernel logs. /var/log/cron.log – Crond logs (cron … Continue reading logs

RED HAT ENTERPRISE LINUX HARDENING CHECKLIST

Red Hat Enterprise Linux Hardening Checklist Preparation and Physical Security If machine is a new install, protect it from hostile network traffic until the operating system is installed and hardened. Set a BIOS/firmware password. Configure the device boot order to prevent unauthorized booting from alternate media. Use the latest version of RHEL possible. Filesystem Configuration … Continue reading RED HAT ENTERPRISE LINUX HARDENING CHECKLIST

simple commands

Introduction to LINUX (Basic Commands) [root@localhost ~]# hostname localhost.localdomain [root@localhost ~]# ifconfig  eth0      Link encap:Ethernet  HWaddr 00:0C:29:63:46:BD inet addr:172.16.28.145  Bcast:172.16.28.255  Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe63:46bd/64 Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:2332 errors:0 dropped:0 overruns:0 frame:0 TX packets:1455 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:257468 (251.4 KiB)  TX bytes:192203 (187.6 KiB) … Continue reading simple commands

rhel-7 or centos-7

Make Rhel-7 & in Graphical mode                                   How To make rhel-7 as graphical desktop yum grouplist yum groups install "GNOME Desktop" or yum groupinstall "GNOME Desktop" yum groups install "Server with GUI" or yum groupinstall "Server with GUI" systemctl … Continue reading rhel-7 or centos-7

shell-scripts

Shell-Scripting: First look how to print the text using script [root@shellscripting ~]# touch one [root@shellscripting ~]# cat > one echo "Hello every one Thanks for reading" [root@shellscripting ~]# sh one  Hello every one Thanks for reading [root@shellscripting ~]# bash one Hello every one Thanks for reading ----------------------------------------------------------------------------------------------------- [root@shellscripting ~]# touch second [root@shellscripting ~]# [root@shellscripting ~]# … Continue reading shell-scripts

important commands

cut,sort,uniq.sed.awk commands [root@rhel6-client1 ~]# cat cutcommand  hello now we are gojng to explain cut command this is the first line of our practise seond line of our practise session third line will be this fourth line  consists of this data like this we can practise [root@rhel6-client1 ~]# cut -d " " -f1 cutcommand hello this … Continue reading important commands

monitoring commands

Top Command   Top Command: As a Linux system administrator, top command is a frequently used command and our daily tasks we used multiple times this commands to view resource utilization by processes on server. This command helps us to find which process is utilizing what resources of system. Result Row #1: Row 1 results … Continue reading monitoring commands

advanced file-permissions

Advanced File Permissions(sgid-suid-stickybit,chattr) SUID ( setuid ) :- If SUID bit is set on a file and a user executed it. The process will have the same rights as the owner of the file being executed. For example: passwd command have SUID bit enabled. When a normal user change his password this script update few … Continue reading advanced file-permissions

job-scheduling

Linux crontab is similar to windows task schedules. Crontab are very useful for routine tasks like scheduling system scanning, daily backups etc. Crontab executes jobs automatically in back-end on specified time interval. For scheduling one time tasks you can use at command in Linux. Linux crontab have six fields. 1-5 fields denotes time and 6’th … Continue reading job-scheduling

lvm

LVM [root@LVM ~]# rpm -qa | grep lvm lvm2-libs-2.02.118-2.el6.x86_64 lvm2-2.02.118-2.el6.x86_64 mesa-private-llvm-3.4-3.el6.x86_64 -------------------------------------------------------------------------------- [root@LVM ~]# fdisk /dev/sda WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 … Continue reading lvm