Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AskinNet/22e0d8c8674a9907af87c9dda118dabc to your computer and use it in GitHub Desktop.
Save AskinNet/22e0d8c8674a9907af87c9dda118dabc to your computer and use it in GitHub Desktop.
Alpine with sudo and no password

Alpine with sudo and no password

su root
addgroup -S sudo
addgroup manager sudo
getent group sudo
apk update
apk upgrade
apk --no-cache add openssh nano sudo tzdata
visudo /etc/sudoers.d/nopasswd
%sudo ALL = (ALL) NOPASSWD: ALL
Defaults exempt_group = sudo

Configuring Timezone

ln -f -s '/usr/share/zoneinfo/America/Sao_Paulo' '/etc/localtime'
echo "America/Sao_Paulo" | tee /etc/timezone
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment