Skip to content

Instantly share code, notes, and snippets.

View hsachdevah's full-sized avatar

Himanshu Sachdeva hsachdevah

View GitHub Profile
# file /etc/sudoers.d/go
# preferably edit using visudo -f <file>
# allow the go user to run some commands using sudo. Need to specify full path to command.
Cmnd_Alias GO_SUDO_CMDS = /usr/sbin/vzctl, /bin/umount /mnt/vzdata/*/projectdata
# don't require a tty for running sudo
Defaults!GO_SUDO_CMDS !requiretty
# don't require password