Created
March 22, 2016 09:09
-
-
Save hvindin/8ee1d21f8fd760aff29b to your computer and use it in GitHub Desktop.
export to sudoers file to disable tty and make vagrant a NOPASSWD user
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
| Defaults !requiretty | |
| Defaults !visiblepw | |
| Defaults always_set_home | |
| Defaults env_reset | |
| Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS" | |
| Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE" | |
| Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES" | |
| Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE" | |
| Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY" | |
| Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin | |
| root ALL=(ALL) NOPASSWD:ALL | |
| vagrant ALL=(ALL) NOPASSWD:ALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment