Created
May 12, 2020 14:36
-
-
Save phelewski/f50ec043a1222432d65611a8d3f6526e to your computer and use it in GitHub Desktop.
Visual Studios Code Remote - Container Blog | Example non-root User with sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&& apt-get install -y sudo \ | |
&& echo $USERNAME ALL=\(root\) NOPASSWD:/usr/sbin/foo > /etc/sudoers.d/$USERNAME \ | |
&& chmod 0440 /etc/sudoers.d/$USERNAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment