From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id F37553858D1E; Sat, 14 Jan 2023 19:16:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F37553858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673723785; bh=SgnTHH7xai9SrPpCGzSwO6sohGbRJbbkgnu1W66Vefs=; h=From:To:Subject:Date:From; b=Xgq5Ah0s9ZxCv9tGfhn1GSvvcrbRa0A1tLkyttb5FUVKWZWq7HWldlv3ygNCwFT14 uHuNeDYHDAoea+UABOWaCHlCMY/PNUrlrULqh5/uC7Qruqgnv/MNFYVhmxb4hLt9ZN xxCGCqH0lH7P6SnStBKV8oogj6i49uWf5BR6QqHk= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: newgrp: improve doumentation X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 62b9c98f12ff58e870ac42d2cd1b6860bf371ae0 X-Git-Newrev: 34b361c903c6409a41c9404590885d4d4b7c6a06 Message-Id: <20230114191624.F37553858D1E@sourceware.org> Date: Sat, 14 Jan 2023 19:16:24 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D34b361c903c= 6409a41c9404590885d4d4b7c6a06 commit 34b361c903c6409a41c9404590885d4d4b7c6a06 Author: Corinna Vinschen AuthorDate: Sat Jan 14 20:13:54 2023 +0100 Commit: Corinna Vinschen CommitDate: Sat Jan 14 20:13:54 2023 +0100 Cygwin: newgrp: improve doumentation =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/doc/utils.xml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml index 927dc7c6b85e..71c220d3006d 100644 --- a/winsup/doc/utils.xml +++ b/winsup/doc/utils.xml @@ -1967,26 +1967,32 @@ D: on /d type fat (binary,user,noumount) newgrp changes the primary group for a command. =20 - If the '-' flag is given as first argument, the user's environ= ment - will be reinitialized as though the user had logged in, otherwise = the - current environment, including current working directory, remains - unchanged. + If the flag is given as first argument, the + user's environment will be reinitialized as though the user had logged + in, otherwise the current environment, including current working + directory, remains unchanged. =20 newgrp changes the current primary group to= the named group, or to the default group listed in /etc/passwd if no g= roup name is given. =20 By default, the user's standard shell is started, called as lo= gin - shell if the '-' flag has been specified. If a group has been giv= en - as argument, a command and its arguments can be specified on the - command line. + shell if the flag has been specified. If a gro= up + has been given as argument, a command and its arguments can be + specified on the command line. =20 Please note that setting the primary group to any arbitrary gr= oup - is no privileged operation on Windows. However, if this group is = not - in your current user token, or if the group is in your user token but - marked as deny-only, no additional permissions can - be obtained by setting this group as primary group. + is no privileged operation on Windows. However, even if this grou= p is + not in your current user token, or if the group is in your user token + but marked as deny-only, no additional permissions + can be obtained by setting this group as primary group. + + + See also + id(1), login(1). + + =20