Skip to content

Instantly share code, notes, and snippets.

@AlexTiTanium
Created September 5, 2013 10:11
Show Gist options
  • Save AlexTiTanium/6448315 to your computer and use it in GitHub Desktop.
Save AlexTiTanium/6448315 to your computer and use it in GitHub Desktop.
#!/bin/bash
##############ADD NEW USER##############
HOME_BASE="/home/"
read -p "Enter username : " username
useradd -m -d ${HOME_BASE}$username -s /bin/false $username
chown root:root ${HOME_BASE}$username
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment