Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent wiping of addresses of other providers #169

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7c06c81
Fix for issue #108, add a flag to manage guest hosts file.
Nov 14, 2014
ef2f01c
Improve README.md for Passwordless sudo.
tjanez Oct 13, 2015
270c15d
Prevent wiping of addresses of other providers
Nov 6, 2015
7715a76
Updating Contribute section to be specific.
seth-reeser Dec 30, 2015
117dc4b
v1.7.0 release.
seth-reeser Dec 30, 2015
c92cff0
Update README.md
seth-reeser Jan 15, 2016
dcd0351
Merge pull request #167 from tjanez/readme-passwordless-sudo
seth-reeser Jan 20, 2016
11677f2
Update README.md
seth-reeser Jan 27, 2016
dd43278
Ensure permissions on /etc/hosts stay intact
Jan 29, 2016
d1ba474
Merge pull request #176 from criticalstack/fix-selinux-permissions-on…
seth-reeser Jan 29, 2016
f1b0174
Releasing v1.7.1
seth-reeser Jan 29, 2016
3b840be
Merge pull request #125 from damienjoldersma/feature/manage-guest-flag
seth-reeser Feb 11, 2016
6f4c0d7
Releasing v1.8.0
seth-reeser Feb 11, 2016
a179758
Fixes #177 - Manage the guest by default.
seth-reeser Feb 11, 2016
ab8b041
Prevent wiping of addresses of other providers
Nov 6, 2015
2b5e0ae
Merge branch 'master' of github.com:lomignet/vagrant-hostmanager
Feb 19, 2016
494a3e3
Merge pull request #117 from pbitty/separate_aliases_option
seth-reeser Jul 22, 2015
13d95ba
Add option add_current_fqdn
Feb 19, 2016
9b7f385
refactor to have machine list in its own method
Feb 19, 2016
abac3e8
handle short name and removing from 127.*
Feb 19, 2016
43a88f8
remove old debug statement
Feb 19, 2016
aa39351
Prepare vagrant-hostoverseer release
Feb 22, 2016
b30f835
prepare public release
Feb 22, 2016
2a54f78
Add git url in gemspec
Feb 22, 2016
ae39240
Learning how to publish ruby gems...
Feb 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve README.md for Passwordless sudo.
Add information that the usual sudo group on Fedora/Red Hat systems is
named 'wheel'.
Generalize instructions to make them distribution-agnostic.
Add step on adding yourself to the administrator group.
  • Loading branch information
tjanez committed Oct 13, 2015
commit ef2f01cbc3cb898e96f96f5be3c414d0ffe40785
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,31 @@ end
Passwordless sudo
-----------------

Add the following snippet to the sudoers file (for example, to
```/etc/sudoers.d/vagrant_hostmanager```) to make it stop asking
password when updating hosts file (replace ```/home/user``` with your
actual home directory):
To avoid being asked for the password every time the hosts file is updated,
enable passwordless sudo for the specific command that hostmanager uses to
update the hosts file.

Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp /home/user/.vagrant.d/tmp/hosts.local /etc/hosts
%sudo ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE
- Add the following snippet to the sudoers file (e.g.
`/etc/sudoers.d/vagrant_hostmanager`):

```
Cmnd_Alias VAGRANT_HOSTMANAGER_UPDATE = /bin/cp <home-directory>/.vagrant.d/tmp/hosts.local /etc/hosts
%<admin-group> ALL=(root) NOPASSWD: VAGRANT_HOSTMANAGER_UPDATE
```

Replace `<home-directory>` with your actual home directory (e.g.
`/home/joe`) and `<admin-group>` with the group that is used by the system
for sudo access (usually `sudo` on Debian/Ubuntu systems and `wheel`
on Fedora/Red Hat systems).

- If necessary, add yourself to the `<admin-group>`:

```
usermod -aG <admin-group> <user-name>
```

Replace `<admin-group>` with the group that is used by the system for sudo
access (see above) and `<user-name>` with you user name.

Windows support
---------------
Expand Down