Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@phelewski
Created May 12, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phelewski/f50ec043a1222432d65611a8d3f6526e to your computer and use it in GitHub Desktop.
Save phelewski/f50ec043a1222432d65611a8d3f6526e to your computer and use it in GitHub Desktop.
Visual Studios Code Remote - Container Blog | Example non-root User with sudo
&& 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