This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
#title :mkuser.sh | |
#description :This script will make random password for root, new user, new user as sudo, clear history | |
#author :Trle94 @ Castlegem SRL | |
#date :03.04.2018 | |
#version :0.1 | |
#usage :./mkuser.sh | |
#-------------------------------------------------------------------------------- | |
[ $EUID -eq 0 ] || { echo "This script needs to be ran with SUDO!"; exit 1; } |