#!/bin/bash
if [ "${UID}" != "0" ]
  then
    echo "Permission denied!!!    You need to be root to execute this command"
    exit 1
  else
    echo "You are root"
fi