Sha256: 01d1e6dd9b79a7ca77bf980796adf82c337686ac4925941031cc2510cfd221d7
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
vagrant-norequiretty ==================== A Vagrant plugin that disables `requiretty` on Linux guests. We've all seen it before. The dreaded "you must have a tty to run sudo" error: ``` The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! Stderr from the command: sudo: sorry, you must have a tty to run sudo ``` Simply install this plugin and it will attempt to make that error disappear by hooking into the Vagrant startup sequence and sanitizing `/etc/sudoers` before other commands run. To install, simply run: vagrant plugin install vagrant-norequiretty Everything else should start happening automagically™. Synopsis ======== This error is caused by many VM templates and default installations requiring a TTY to use `sudo` due to concerns about eching plaintext passwords in the clear. For many cases, [this requirement is questionable](https://bugzilla.redhat.com/show_bug.cgi?id=1020147): > Well, I know how to work around this. > > But nobody has yet explained why I have to. > > The problem is not that it's annoying, the problem is that it's annoying for no value. The case that it was supposed to handle is handled just fine without it. > > So let me re-state the cons of this: > > 1) it adds no security > 2) it breaks valid usage > 3) it diverges from the upstream > > I see no pros. Do you? This Vagrant plugin hooks into startup actions for VirtualBox, vSphere and VMware Desktop providers and runs a `sed` command to purge the `requiretty` setting before provisioners, synced folders and networking actions are executed. Support for additional providers coming soon.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-norequiretty-0.0.1 | README.markdown |