DEV Community

Discussion on: Using sudo without password prompt as non-root docker user

Collapse
 
kalvaro profile image
Álvaro González

To my understanding, %sudo ALL=(ALL) NOPASSWD:ALL grants newuser (and any other user eventually added to the sudo group) permission to execute absolutely any command without being asked for password. I'd rather do something like:

%docker ALL=(ALL) NOPASSWD:/usr/bin/dockerd
Enter fullscreen mode Exit fullscreen mode