Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/usr/bin/bash
- #/usr/bin/sh
- #
- # Script: iam <- no .sh this is a command like whoami
- # Author: hynten@speed-mailer.com
- # Date: 2015-04-16 - 01 (ee = times edited)
- #
- # Purpose: Check if you are root or not!
- #
- # Notes: chmod u=rwx,g=rx,o=r iam
- # then cp iam /bin
- # Now you write iam, And the program starts---
- #---IF YOU ARE NORMAL USER------#
- if [ "$(id -u)" != "0" ]; then
- reset
- echo "┌DEBIAN™────┐ SORRY!!"
- echo "┃ ✌ℎʸᶰᵗᵉⁿ✍ ┃ YOU ARE.."
- echo "└──────⌨USER┘ NO ROOT!!"
- exit 1 ; fi
- #-------------------------------#
- #----IF YOU ARE ROOT!-----------#
- if [ "$(id -u)" != "1" ]; then
- reset
- echo "┏DEBIAN™━━━━┓ WELCOME.."
- echo "│ ✌ℎʸᶰᵗᵉⁿ✍ │ IT'S TRUE.."
- echo "┗━━━━━━⌨ROOT┛ YOU ARE ROOT!!"
- exit 1 ; fi
- #-------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement