1 2 3 4 5 6 7 8 9 10
#!/bin/sh # lh_testroot.sh # Checking user account if [ "`id -u`" -ne "0" ] then echo "E: need root privileges" exit 1 fi