Advertisement
Guest User

Untitled

a guest
Apr 16th, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. #/usr/bin/bash
  2. #/usr/bin/sh
  3. #
  4. # Script: iam   <- no .sh this is a command like whoami
  5. # Date: 2015-04-16 - 01   (ee = times edited)
  6. #
  7. # Purpose: Check if you are root or not!
  8. #
  9. # Notes: chmod u=rwx,g=rx,o=r iam
  10. #        then cp iam /bin
  11. #        Now you write iam, And the program starts---
  12.  
  13. #---IF YOU ARE NORMAL USER------#
  14. if [ "$(id -u)" != "0" ]; then
  15. reset
  16. echo "┌DEBIAN™────┐ SORRY!!"
  17. echo "┃ ✌ℎʸᶰᵗᵉⁿ✍  ┃ YOU ARE.."  
  18. echo "└──────⌨USER┘ NO ROOT!!"
  19. exit 1 ; fi
  20. #-------------------------------#
  21.  
  22. #----IF YOU ARE ROOT!-----------#
  23. if [ "$(id -u)" != "1" ]; then
  24. reset
  25. echo "┏DEBIAN™━━━━┓ WELCOME.."
  26. echo "│ ✌ℎʸᶰᵗᵉⁿ✍  │ IT'S TRUE.."
  27. echo "┗━━━━━━⌨ROOT┛ YOU ARE ROOT!!"
  28. exit 1 ; fi
  29. #-------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement