deny.sh
10 linesbash
DOWNLOAD
1#!/bin/bash
2# Aim: Program to perform file access control (File Access Control).
3echo "enter an executable to protect :"
4read file
5if [ ! -f $file ]; then
6    echo "file not found"
7    exit 1
8fi
9chmod -x $file
10echo "file is no longer executable"
KTU Cyberlab vault