Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JucaRei/bd111319f69344df1177a496e191773e to your computer and use it in GitHub Desktop.
Save JucaRei/bd111319f69344df1177a496e191773e 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