diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml index 927dc7c6b..71c220d30 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. - 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. + 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. newgrp changes the current primary group to the named group, or to the default group listed in /etc/passwd if no group name is given. 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 - as argument, a command and its arguments can be specified on the - command line. + shell if the flag has been specified. If a group + has been given as argument, a command and its arguments can be + specified on the command line. Please note that setting the primary group to any arbitrary group - 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 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. + + + See also + id(1), login(1). + +