Skip to content

Instantly share code, notes, and snippets.

@nautatva
Last active May 26, 2019 10:27
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 nautatva/32c686a3b9d3321d8c3b0d223e5046cb to your computer and use it in GitHub Desktop.
Save nautatva/32c686a3b9d3321d8c3b0d223e5046cb to your computer and use it in GitHub Desktop.
give sudo access without requiring to enter password

user1 want to be able to 'su' to a specific user, without a password to be entered.

$ sudo visudo
$ user1 ALL=(ALL) NOPASSWD: /bin/bash

for all users
$ user1 ALL=(ALL) NOPASSWD: ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment