Linux

Eye on your System

Here is a little script sent to use. While it doesn’t cover everything to watch for on a system, it covers some of the basics. Use the following simple script to check for security problems on…


Changing Owners Regularly

If you’re an SA and need to change file ownership permissions on a regular basis, this script may help you. If you want to change the ownership of all the files owned by abc user to xyz…


Who Sent Me Mail?

To know who all have sent you mail. —————CUT HERE ———- #!/bin/sh : ${USER:=`expr “\`LANG=C id\`” : ‘uid=[0-9]*(\([^)]*\).*’`} for MBox in /var/mail/$USER /usr/spool/mail/$USER “” do [ -r “$MBox” ] && break done [ -z “$MBox” ]…


File System Capacity Alert script

#!/bin/sh # This script can be used to # warn the users that # the file system is getting full # # Script needs adjusted for your # needs. Below is set to monitor #…


Another Process Finder

psfind command: Here is a quick script that you can use to filter the list of active processes to only those that contain a specified string. Edit into the file /usr/local/bin/psfind ps -ef|grep -i $1|grep…



How to patch Red Hat systems against SambaCry

A vulnerability involving a Linux package called Samba is making the rounds, and in the spirit of the Windows-based exploit known as WannaCry, this one is called SambaCry. Red Hat Enterprise Linux systems from version…


Another Process Finder

psfind command: Here is a quick script that you can use to filter the list of active processes to only those that contain a specified string. Edit into the file /usr/local/bin/psfind ps -ef|grep -i $1|grep…



Linux filesystem hierarchy

The Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Unix-like operating systems. It is maintained by the Linux Foundation. The latest version is 3.0, released on 3 June 2015. Currently it…