AlpineLinux 3.7: sudo without password

Table of Contents

1 Install sudo

Install sudo package and enable wheel group entry.

# apk add sudo# sed -e ‘s/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/g’ -i /etc/sudoers

2 Add user to wheel group

Add user to wheel group.

# adduser hiroom2Changing password for hiroom2New password:Retype password:passwd: password for hiroom2 changed by root# sed -e ‘s/^wheel:(.*)/wheel:1,hiroom2/g’ -i /etc/group

Android | Linux | SDL - Narrow Escape