2006-12-06 17:25:32 -06:00
|
|
|
.\" Original author unknown. This man page is in the public domain.
|
|
|
|
.\" Modified Sat Oct 9 17:46:48 1993 by faith@cs.unc.edu
|
2011-08-18 15:18:34 -05:00
|
|
|
.TH NEWGRP 1 "October 1993" "util-linux" "User Commands"
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH NAME
|
|
|
|
newgrp \- log in to a new group
|
|
|
|
.SH SYNOPSIS
|
2009-07-22 04:29:05 -05:00
|
|
|
.B newgrp
|
|
|
|
.RI [ group ]
|
2006-12-06 17:25:32 -06:00
|
|
|
.SH DESCRIPTION
|
2011-08-18 15:18:34 -05:00
|
|
|
.B newgrp
|
2006-12-06 17:25:32 -06:00
|
|
|
changes the group identification of its caller, analogously to
|
|
|
|
.BR 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.
|
|
|
|
.LP
|
|
|
|
If no group is specified, the GID is changed to the login GID.
|
|
|
|
.SH FILES
|
|
|
|
.I /etc/group
|
|
|
|
.br
|
|
|
|
.I /etc/passwd
|
|
|
|
|
2020-05-19 07:51:28 -05:00
|
|
|
.SH AUTHORS
|
2009-07-22 04:29:05 -05:00
|
|
|
Originally by Michael Haardt. Currently maintained by
|
2006-12-06 17:25:33 -06:00
|
|
|
Peter Orbaek (poe@daimi.aau.dk).
|
2007-07-02 18:17:04 -05:00
|
|
|
|
2020-05-21 02:28:21 -05:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR login (1),
|
|
|
|
.BR group (5)
|
|
|
|
|
2007-07-02 18:17:04 -05:00
|
|
|
.SH AVAILABILITY
|
2010-11-30 04:41:59 -06:00
|
|
|
The newgrp command is part of the util-linux package and is available from
|
2016-12-17 02:06:57 -06:00
|
|
|
https://www.kernel.org/pub/linux/utils/util-linux/.
|