---
name: "newgrp"
section: "1"
platform: "linux"
package: "util-linux"
version: "2.42.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/newgrp"
---

# newgrp(1)

log in to a new group

## NAME

newgrp - log in to a new group

## SYNOPSIS

**newgrp** \[*group* \[*command*\]\]

**newgrp** \[**-c** *command*\] \[*group*\]

## DESCRIPTION

**newgrp** changes the group identification of its caller, analogously to [**login**(1)](/login/1.md). 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*

## AUTHORS

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

## SEE ALSO

[**login**(1)](/login/1.md), [**group**(5)](/group/5.md)

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