Skip to content

Instantly share code, notes, and snippets.

@samehmohamed88
Last active January 2, 2016 20:59
Show Gist options
  • Save samehmohamed88/8360350 to your computer and use it in GitHub Desktop.
Save samehmohamed88/8360350 to your computer and use it in GitHub Desktop.
Very simple bootstrap script to create an admins group and add an admin user in that group, then modify sudoers to have PASSWORD LESS sudo access for group admins
groupadd admins
adduser admin
usermod -g admins admin
vim /etc/sudoers
#we need to give the admins group PASSWORDLESS SUDO
#this is done by adding
# %admins ALL=(ALL) NOPASSWD:ALL
#now we set the hostname
hostname durden
vim /etc/hostname
#now install git python-distribute and python-setuptools
apt-get update
apt-get install -y git-core python-distribute python-setuptools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment