checkroot.sh 127 B

12345678910
  1. #!/bin/sh
  2. echo -e "checking root"
  3. if [ "$EUID" = 0 ]; then
  4. echo -e "root ok"
  5. else
  6. echo -e "Please run as root"
  7. exit
  8. fi