Cygwin: newgrp: improve doumentation

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-01-14 20:13:54 +01:00
parent 62b9c98f12
commit 34b361c903
1 changed files with 17 additions and 11 deletions

View File

@ -1967,26 +1967,32 @@ D: on /d type fat (binary,user,noumount)
<para><command>newgrp</command> changes the primary group for a <para><command>newgrp</command> changes the primary group for a
command.</para> command.</para>
<para>If the '-' flag is given as first argument, the user's environment <para>If the <option>-</option> flag is given as first argument, the
will be reinitialized as though the user had logged in, otherwise the user's environment will be reinitialized as though the user had logged
current environment, including current working directory, remains in, otherwise the current environment, including current working
unchanged.</para> directory, remains unchanged.</para>
<para><command>newgrp</command> changes the current primary group to the <para><command>newgrp</command> changes the current primary group to the
named group, or to the default group listed in /etc/passwd if no group named group, or to the default group listed in /etc/passwd if no group
name is given.</para> name is given.</para>
<para>By default, the user's standard shell is started, called as login <para>By default, the user's standard shell is started, called as login
shell if the '-' flag has been specified. If a group has been given shell if the <option>-</option> flag has been specified. If a group
as argument, a command and its arguments can be specified on the has been given as argument, a command and its arguments can be
command line.</para> specified on the command line.</para>
<para>Please note that setting the primary group to any arbitrary group <para>Please note that setting the primary group to any arbitrary group
is no privileged operation on Windows. However, if this group is not is no privileged operation on Windows. However, even if this group is
in your current user token, or if the group is in your user token but not in your current user token, or if the group is in your user token
marked as <literal>deny-only</literal>, no additional permissions can but marked as <literal>deny-only</literal>, no additional permissions
be obtained by setting this group as primary group.</para> can be obtained by setting this group as primary group.</para>
</refsect1> </refsect1>
<refsect1 id="newgrp-seealso">
<title>See also</title>
<para><command>id</command>(1), <command>login</command>(1).</para>
</refsect1>
</refentry> </refentry>
<refentry id="passwd"> <refentry id="passwd">