#!/bin/bash
#FileName: lock_file.sh
#Description: Lock system files


# Define files
files='
/etc/passwd
/etc/fstab
/etc/group
/etc/resolv.conf
/etc/sysconfig/network
'


case $1 in
	on)
		chattr +i ${files}
		;;
	off)
		chattr -i ${files}
		;;
	*)
		echo "Pls Usage on | off"
esac
