Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7142018EE6 for ; Mon, 19 Oct 2015 17:11:47 +0000 (UTC) Received: (qmail 34254 invoked by uid 500); 19 Oct 2015 17:11:47 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 34230 invoked by uid 500); 19 Oct 2015 17:11:47 -0000 Mailing-List: contact commits-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list commits@brooklyn.incubator.apache.org Received: (qmail 34221 invoked by uid 99); 19 Oct 2015 17:11:47 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2015 17:11:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A1F8BC04B9 for ; Mon, 19 Oct 2015 17:11:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id sBgF74Ra9FR6 for ; Mon, 19 Oct 2015 17:11:36 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 6339A43C67 for ; Mon, 19 Oct 2015 17:11:36 +0000 (UTC) Received: (qmail 34125 invoked by uid 99); 19 Oct 2015 17:11:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2015 17:11:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C93A2E0286; Mon, 19 Oct 2015 17:11:35 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aledsage@apache.org To: commits@brooklyn.incubator.apache.org Date: Mon, 19 Oct 2015 17:11:35 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-brooklyn git commit: Add description for configuring passwordless sudo to localhost location. 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 Authored: Mon Oct 19 17:42:44 2015 +0100 Committer: lloyddave 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