newgrp(1)

newgrp1

Log in to a new group

Usage

newgrp [group [command]]

newgrp [-c command] [group]

Overview

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.

An optional command can be specified, which is invoked after group change instead of the user’s shell.

Options

-c, --command=command

Pass command to the user’s shell with the -c option.

-h, --help

Display help text and exit.

-V, --version

Display version and exit.

Files

/etc/group, /etc/passwd

Releases

19 releases since Debian 1.1 (Buzz); the text changed 16 times.

  1. 1.1–1.2
  2. 1.3
  3. 2.0–2.1
  4. 2.2
  5. 3.0
  6. 3.1
  7. 4.0
  8. 5.0
  9. 6.0
  10. 7
  11. 8
  12. 9
  13. 10
  14. 11
  15. 12
  16. 13
  17. Arch

--command since Debian 13 (Trixie); --help since Debian 13 (Trixie); --version since Debian 13 (Trixie); -V since Debian 13 (Trixie); -c since Debian 13 (Trixie); -h since Debian 13 (Trixie).

Authors

Originally by Michael Haardt. Currently maintained by Peter Orbaek <[email protected]>.

Reporting bugs

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

Availability

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/>.

From util-linux 2.42.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.