Revert " Recommend adding lines to end of sudoers, ensuring %admin and root exist "

This reverts commit 36420ce82b.
This commit is contained in:
Morgan Williams 2019-05-09 21:46:01 -04:00
parent 36420ce82b
commit a09ad31db4
1 changed files with 8 additions and 6 deletions

View File

@ -134,9 +134,10 @@ If you do not want to type your password on every `vagrant up`, Vagrant
uses thoughtfully crafted commands to make fine-grained sudoers modifications uses thoughtfully crafted commands to make fine-grained sudoers modifications
possible to avoid entering your password. possible to avoid entering your password.
Below are example entries to add at the end of your sudoers file. Below, we have a couple example sudoers entries. Note that you may
have to modify them _slightly_ on certain hosts because the way Vagrant
Note that you may have to modify them _slightly_ on certain hosts because the way Vagrant modifies `/etc/exports` changes a bit from OS to OS. If the commands below are located in non-standard paths, modify them as appropriate. modifies `/etc/exports` changes a bit from OS to OS. If the commands below
are located in non-standard paths, modify them as appropriate.
For \*nix users, make sure to edit your `/etc/sudoers` file with `visudo`. It protects you against syntax errors which could leave you without the ability to gain elevated privileges. For \*nix users, make sure to edit your `/etc/sudoers` file with `visudo`. It protects you against syntax errors which could leave you without the ability to gain elevated privileges.
@ -147,7 +148,7 @@ All of the snippets below require Vagrant version 1.7.3 or higher.
configured, you might need to use a different group than the ones listed in the examples below. configured, you might need to use a different group than the ones listed in the examples below.
</div> </div>
At the end of sudoers in OS X: For OS X, sudoers should have this entry:
``` ```
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
@ -156,7 +157,7 @@ Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports
%admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE %admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE
``` ```
At the end of sudoers in Ubuntu Linux: For Ubuntu Linux , sudoers should look like this:
``` ```
Cmnd_Alias VAGRANT_EXPORTS_CHOWN = /bin/chown 0\:0 /tmp/* Cmnd_Alias VAGRANT_EXPORTS_CHOWN = /bin/chown 0\:0 /tmp/*
@ -167,7 +168,8 @@ Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar
%sudo ALL=(root) NOPASSWD: VAGRANT_EXPORTS_CHOWN, VAGRANT_EXPORTS_MV, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY %sudo ALL=(root) NOPASSWD: VAGRANT_EXPORTS_CHOWN, VAGRANT_EXPORTS_MV, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY
``` ```
At the end of sudoers in Fedora Linux (given your user belongs to the `vagrant` group): For Fedora Linux, sudoers might look like this (given your user
belongs to the vagrant group):
``` ```
Cmnd_Alias VAGRANT_EXPORTS_CHOWN = /bin/chown 0\:0 /tmp/* Cmnd_Alias VAGRANT_EXPORTS_CHOWN = /bin/chown 0\:0 /tmp/*