Last active
January 2, 2016 20:59
-
-
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
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
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