Pr0ject-X / px

Project-X is a pluggable development tool for streamlining redundant project tasks without all the hassle.
https://pr0ject-x.github.io/px/
1 stars 2 forks source link

Setting hostname on Machine requires user to add machine password #43

Closed kyletcook closed 3 years ago

kyletcook commented 3 years ago

Problem / Motivation


User runs commandpx env:up During the process, after Vagrant has been launched, there is an interruption. command ==> ###: Preparing to edit /etc/exports. - requires passwd

Environment


Mac OS Mojave

Resolution


Ideally, process could be bypassed to complete the start of the environment without user intervention.

droath commented 3 years ago

@kyletcook yes, this can be quite annoying, this is something that vagrant does by default when using the host manager plugin. Follow the instructions below to remove the need of having the password dialog shown.

Password-less Sudo

To avoid being asked for the password every time the hosts file is updated, enable password-less sudo for the specific command that host-manager uses to update the hosts file.