Advertisement
Guest User

Untitled

a guest
Apr 16th, 2015
300
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. # Author: hynten@speed-mailer.com
  6. # Date: 2015-04-16 - 01   (ee = times edited)
  7. #
  8. # Purpose: Check if you are root or not!
  9. #
  10. # Notes: chmod u=rwx,g=rx,o=r iam
  11. #        then cp iam /bin
  12. #        Now you write iam, And the program starts---
  13.  
  14. #---IF YOU ARE NORMAL USER------#
  15. if [ "$(id -u)" != "0" ]; then
  16. reset
  17. echo "┌DEBIAN™────┐ SORRY!!"
  18. echo "┃ ✌ℎʸᶰᵗᵉⁿ✍  ┃ YOU ARE.."  
  19. echo "└──────⌨USER┘ NO ROOT!!"
  20. exit 1 ; fi
  21. #-------------------------------#
  22.  
  23. #----IF YOU ARE ROOT!-----------#
  24. if [ "$(id -u)" != "1" ]; then
  25. reset
  26. echo "┏DEBIAN™━━━━┓ WELCOME.."
  27. echo "│ ✌ℎʸᶰᵗᵉⁿ✍  │ IT'S TRUE.."
  28. echo "┗━━━━━━⌨ROOT┛ YOU ARE ROOT!!"
  29. exit 1 ; fi
  30. #-------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement