Skip to content

Instantly share code, notes, and snippets.

@denis
Created April 27, 2009 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denis/102525 to your computer and use it in GitHub Desktop.
Save denis/102525 to your computer and use it in GitHub Desktop.
apt-get install ntp ntpdate
aptitude -y install user-setup
user-setup
A user account will be created for you to use instead of the root account for non-administrative activities.
if [ -e $ROOT/etc/sudoers ]; then
$log $chroot $ROOT addgroup --system admin >/dev/null 2>&1 || true
$log $chroot $ROOT adduser "$USER" admin >/dev/null 2>&1 || true
cat <<EOF >>$ROOT/etc/sudoers
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment