From patchwork Mon Feb 11 13:05:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 157991 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2579280jaa; Mon, 11 Feb 2019 05:09:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYhxdIs9zwg5t7SSrqdr/4PQzg0GISUVYAu6TBABcwCRQztYQUe582S/IcvWYExDc/j6f6T X-Received: by 2002:a1c:a5c8:: with SMTP id o191mr635862wme.137.1549890559679; Mon, 11 Feb 2019 05:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549890559; cv=none; d=google.com; s=arc-20160816; b=U1vRgdwzihqkb20PyzeYT2ijYa9ChmcxCfLKhIJ9SPnVMwisgi0EkPmP5LMRcdmN5m 7AZYqxCLEWeejuKBzO96aHuYOoKJQjCLOCp8MvQceuRDYdsfuwZw9/L4XSNs0lU490cJ AmWevlg9qvI18ruq6/U965hrpv8ja9XQLHYXLhE2QDShr2RUcyQCvbV0wrxhQaKzAKq8 ZUDtGmxtXczRHwVmsmxnmAjgGcp6hgf629QQuWmHxnM77w/1GdzIfL3TjMFh8F19cM9H YLNvEOaXKbV8XcrUssN8eYT9OvZt6k6uXoG6dNFumshuwurnPp81mcqRvdGOoIsxAoM0 bipA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=GzWjQ/ZFc5riiSufmyolljmsAwA5/pdBwRd25HGBN8c=; b=RH5uGsT+jm3Vbj2HmNCqoLGWNCOHJmLazgTr1oNsI5yhTg0uUsDD4BNuKZZnxqTUvE Fvtbov0KssIB0Hq8tSzH6jsJ3E0jEHKnl/ddT+muSPw08xt03l1Krc150sb5BPJkNPTJ sWd5BKzWCcMswMJwn3G63UqLQkLYXV8H9JKYkK4Xs6Wnl6hvhSS8YscrLfW9D+oAoH/g a2yHvWxEOxlTwHFYipeHvFULlH/8oQ7IwTvMvVvlBuW/SlHOGvvd+GFl9iyhrLbmzKKy YMIhfAmLsA4DatcvnWAsIe6ScU5iZrHF9YmCkuF7zsBDUjaVVri6C49J/Ir4uI5QLkTP o+QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VVTOyD3X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i11si3658718wrv.226.2019.02.11.05.09.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Feb 2019 05:09:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VVTOyD3X; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:49963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBKo-0001Ck-Fi for patch@linaro.org; Mon, 11 Feb 2019 08:09:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBHc-0007UG-VS for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtBHb-0004C4-1E for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:06:00 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:34174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtBHZ-0003rV-9q for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:05:58 -0500 Received: by mail-wm1-x32b.google.com with SMTP id y185so14539541wmd.1 for ; Mon, 11 Feb 2019 05:05:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GzWjQ/ZFc5riiSufmyolljmsAwA5/pdBwRd25HGBN8c=; b=VVTOyD3XRBv0xICob574R88ZA+QtHgLYFhkk9XmaRv+ZaOtNP1E6zx1rHDOxKgGdJf Lcau5kDH/g1aZ3C2xGFoI8TeIQ4GAvYYUA7FiLEfarc8RUq78l/mWLmTXO+g07RLFgkf bOrCfiLKknHHvyBh2JJvkuAJZ0wE8a9ei6Krr8VMtnE5zbFOhD1wSY1P0Yi8F6yJI+9c WR1Kg4AlJpQuu0P9qYVo6LuOityjhLTRQ8OZPC0QVatSP0S2XWeolhA/eEWJpsnyRS/Z N17e5UIDccRm4TiUeQ76BCg7EUw6euxEqgOiXFaRUWCzAacrJQOwGUuuAMiWEOqnEW9g Qc+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GzWjQ/ZFc5riiSufmyolljmsAwA5/pdBwRd25HGBN8c=; b=Ub39jKP0MulRu2sjn+XBk94DX744mGdJgHokR2V15L834nC0j/K2V+G8lY9VY4r8YB BnEMPqoOhqDVJ+aYzWtsqFxfkcbvnSqtsyA7VdpHWRdMXFOFsPHZ/Efv2uW8Jq1MXudz fWgkmm6GCAwBcnNhFqwIyOgQk59HqK7esJNuSf1IHHBP8VJCFCj06gRg7SSJYT6JAh95 GN9onTyXFZvN0MiaKNw/7qUA7SdmdkIhiRQThcNqSlfhLs4qHy//aiRUQTiAc8LcqR+6 5u/CseyUUhC0tpJvqJtJTqqkmpp6qfI+dLQhjX4czpAgjYcaC1X6Ly8E909LDXQY7394 ND4A== X-Gm-Message-State: AHQUAuYrisH79ur3MGtHlQB6UAzZc4kevOPMK6m6GBtawwM4ng05APUH hPPEWlv1w2olJw0vSZI59ngLSA== X-Received: by 2002:a1c:2c6:: with SMTP id 189mr9032125wmc.21.1549890323299; Mon, 11 Feb 2019 05:05:23 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id k2sm1132861wmj.45.2019.02.11.05.05.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 05:05:21 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DA2771FF91; Mon, 11 Feb 2019 13:05:07 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 11 Feb 2019 13:05:06 +0000 Message-Id: <20190211130507.8710-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211130507.8710-1-alex.bennee@linaro.org> References: <20190211130507.8710-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b Subject: [Qemu-devel] [PULL 17/18] docs/devel/testing: Add -a option to usermod command on docker setup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Murilo Opsfelder Araujo Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Murilo Opsfelder Araujo The option -G of usermod command will remove user from other groups not listed, i.e.: $USER will belong only to group 'docker' after following the documentation as is. >From usermod(8) manual page: If the user is currently a member of a group which is not listed, the user will be removed from the group. This behaviour can be changed via the -a option, which appends the user to the current supplementary group list. This patch improves the situation by adding the -a option to the usermod command, which will just append user to the supplementary group list. Cc: qemu-trivial@nongnu.org Signed-off-by: Murilo Opsfelder Araujo Message-Id: <20190207184346.6840-1-muriloo@linux.ibm.com> Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 18e2c0868a..135743a2bf 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -301,7 +301,7 @@ An alternative method to set up permissions is by adding the current user to .. code:: $ sudo groupadd docker - $ sudo usermod $USER -G docker + $ sudo usermod $USER -a -G docker $ sudo chown :docker /var/run/docker.sock Note that any one of above configurations makes it possible for the user to