doc: Let everyone know about the new vagrant lxc sudoers
command
This commit is contained in:
parent
17a6a35c92
commit
8b1573c536
3 changed files with 7 additions and 5 deletions
|
@ -128,9 +128,12 @@ end
|
||||||
### Avoiding `sudo` passwords
|
### Avoiding `sudo` passwords
|
||||||
|
|
||||||
This plugin requires **a lot** of `sudo`ing since [user namespaces](https://wiki.ubuntu.com/UserNamespace)
|
This plugin requires **a lot** of `sudo`ing since [user namespaces](https://wiki.ubuntu.com/UserNamespace)
|
||||||
are not supported on mainstream kernels. Have a look at the [Wiki](https://github.com/fgrehm/vagrant-lxc/wiki/Avoiding-'sudo'-passwords)
|
are not supported on mainstream kernels. To work around that, you can use the
|
||||||
to find out how to work around that specially if you are running an OS with `sudo`
|
`vagrant lxc sudoers` command which will create a file under `/etc/sudoers.d/vagrant-lxc-<USER>`
|
||||||
< 1.8.4 (like Ubuntu 12.04) as you might be affected by a bug.
|
whitelisting all commands required by `vagrant-lxc` to run.
|
||||||
|
|
||||||
|
If you are interested on what will be generated by that command, please check
|
||||||
|
[this code](lib/vagrant-lxc/commands/sudoers.rb#L58-L81).
|
||||||
|
|
||||||
### Base boxes
|
### Base boxes
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ module Vagrant
|
||||||
module Command
|
module Command
|
||||||
class Root < Vagrant.plugin("2", :command)
|
class Root < Vagrant.plugin("2", :command)
|
||||||
def self.synopsis
|
def self.synopsis
|
||||||
'LXC setup'
|
'vagrant-lxc specific commands'
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(argv, env)
|
def initialize(argv, env)
|
||||||
|
|
|
@ -4,7 +4,6 @@ module Vagrant
|
||||||
module LXC
|
module LXC
|
||||||
module Command
|
module Command
|
||||||
class Sudoers < Vagrant.plugin("2", :command)
|
class Sudoers < Vagrant.plugin("2", :command)
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
options = { user: ENV['USER'] }
|
options = { user: ENV['USER'] }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue