Last active
January 22, 2021 02:59
-
-
Save simryang/d3176821404d19f8326623c13ec67d99 to your computer and use it in GitHub Desktop.
Add /etc/sudoers.d/97-ssh-service.conf file to start ssh service with sudo privilege on windows 10 startup
This file contains hidden or 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
| echo "%sudo ALL=NOPASSWD: /usr/sbin/service" | sudo tee /etc/sudoers.d/97-ssh-service | |
| sudo chmod 0440 /etc/sudoers.d/97-ssh-service |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Target file should not contain '.' or '~' in its name.
user(or group, %) HOST=(target_user:target_group){=NOPASSWD}: command(or ALL)