sábado, 20 de febrero de 2010

LINUX BASH - Check for root


#!/bin/bash

if [ $UID -ne 0 ]; then
echo "You don't have sufficient privileges to run this script."
exit 1
fi

No hay comentarios: