RHEL / CentOS Linux: Nginx Chroot Jail Start / Stop / Restart Shell Script

Posted on in Categories Security last updated September 5, 2016

A simple shell script to start / stop / restart chrooted nginx web server under CentOS / RHEL Linux. You must have Nginx web server setup in a chroot (jail) so that you can minimizes the damage done by a potential break-in by isolating the web server to a small section of the filesystem. You can also mount $jail/tmp as a separate filesystem (/images/tmpfile.bin) with the noexec,nosuid, nodev options under Linux like operating systems.

Linux Firewall: Simple Shell Script To Stop and Flush All Iptables Rules

Posted on in Categories Security last updated April 24, 2008

Script to update user password in batch mode using pwgen and chpasswd

Posted on in Categories Security last updated October 23, 2008

Change password shell script

Posted on in Categories Security last updated April 10, 2008

Shell script for search for no password entries and lock all accounts

Posted on in Categories Security last updated April 10, 2008