Repository: incubator-brooklyn Updated Branches: refs/heads/master 57d101817 -> d8ce6cf2a
Add description for configuring passwordless sudo to localhost location. The current Locations page provides information on setting up passwordless SSH and says that passwordless sudo is required, but does not tell the user how to setup. Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/6bcd0ae0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/6bcd0ae0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/6bcd0ae0 Branch: refs/heads/master Commit: 6bcd0ae0155f25a997950438320701997be618fb Parents: 388668a Author: lloyddave <[email protected]> Authored: Mon Oct 19 17:42:44 2015 +0100 Committer: lloyddave <[email protected]> Committed: Mon Oct 19 17:42:44 2015 +0100 ---------------------------------------------------------------------- docs/guide/ops/locations/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/6bcd0ae0/docs/guide/ops/locations/index.md ---------------------------------------------------------------------- diff --git a/docs/guide/ops/locations/index.md b/docs/guide/ops/locations/index.md index 6cb5ec3..6920b0a 100644 --- a/docs/guide/ops/locations/index.md +++ b/docs/guide/ops/locations/index.md @@ -357,6 +357,18 @@ brooklyn.location.localhost.privateKeyPassphrase=s3cr3tPASSPHRASE If you encounter issues or for more information, see [SSH Keys Localhost Setup](ssh-keys.html#localhost-setup). +If you are normally prompted for a password when executing `sudo` commands, passwordless `sudo` must also be enabled. To enable passwordless `sudo` for your account, a line must be added to the system `/etc/sudoers` file. To edit the file, use the `visudo` command: +{% highlight bash %} +sudo visudo +{% endhighlight %} +Add this line at the bottom of the file, replacing `username` with your own user: +{% highlight bash %} +username ALL=(ALL) NOPASSWD: ALL +{% endhighlight %} +If executing the following command does not ask for your password, then `sudo` should be setup correctly: +{% highlight bash %} +sudo ls +{% endhighlight %} ### BYON
