1NEWGRP(1)                        User Commands                       NEWGRP(1)
2
3
4

NAME

6       newgrp - log in to a new group
7

SYNOPSIS

9       newgrp [-] [group]
10

DESCRIPTION

12       newgrp is used to change the current group ID during a login session.
13       If the optional - flag is given, the user's environment will be
14       reinitialized as though the user had logged in, otherwise the current
15       environment, including current working directory, remains unchanged.
16
17       newgrp changes the current real group ID to the named group, or to the
18       default group listed in /etc/passwd if no group name is given.  newgrp
19       also tries to add the group to the user groupset. If not root, the user
20       will be prompted for a password if she does not have a password (in
21       /etc/shadow if this user has an entry in the shadowed password file, or
22       in /etc/passwd otherwise) and the group does, or if the user is not
23       listed as a member and the group has a password. The user will be
24       denied access if the group password is empty and the user is not listed
25       as a member.
26
27       If there is an entry for this group in /etc/gshadow, then the list of
28       members and the password of this group will be taken from this file,
29       otherwise, the entry in /etc/group is considered.
30

FILES

32       /etc/passwd
33          User account information.
34
35       /etc/shadow
36          Secure user account information.
37
38       /etc/group
39          Group account information.
40
41       /etc/gshadow
42          Secure group account information.
43

SEE ALSO

45       id(1), login(1), su(1), gpasswd(1), group(5), gshadow(5).
46
47
48
49User Commands                     07/30/2006                         NEWGRP(1)
Impressum