Manual Page Search Parameters
newgrp(1) log in to a new group
newgrp(1P, 1p) change to a new group

NEWGRP(1) User Commands NEWGRP(1)

newgrp - log in to a new group

newgrp [group]

newgrp changes the group identification of its caller, analogously to login(1). The same person remains logged in, and the current directory is unchanged, but calculations of access permissions to files are performed with respect to the new group ID.

If no group is specified, the GID is changed to the login GID.

-h, --help

Display help text and exit.

-V, --version

Print version and exit.

/etc/group, /etc/passwd

Originally by Michael Haardt. Currently maintained by Peter Orbaek <poe@daimi.aau.dk>.

login(1), group(5)

For bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>.

The newgrp command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.

2024-05-28 util-linux 2.40.2