Tero

Check admin user account

Apr 19th, 2019
477
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$1" ]; then
  2.     echo "Error: user admin exists"
  3.     exit 1
  4. fi
Advertisement
Add Comment
Please, Sign In to add comment