NEWGRP(1,C) AIX Commands Reference NEWGRP(1,C)
-------------------------------------------------------------------------------
newgrp
PURPOSE
Changes your primary group identification.
SYNTAX
+-----+ +---------+
newgrp ---| |---| |---|
+- - -+ +- group -+
DESCRIPTION
The newgrp command changes your primary group identification to group. This
command recognizes only group names, not group ID numbers. Group passwords and
group names can contain only ASCII characters.
Without an argument, newgrp changes your primary group to the one specified in
the /etc/passwd file. If the group has a password and you do not or if the
group has a password and you are not listed in the /etc/group file as a member,
newgrp asks you for the group password.
Note: Your present shell is terminated and replaced with a new shell by the
newgrp command.
FLAG
- Changes the environment to the login environment of the new group.
EXAMPLES
1. To change the primary group ID of the current shell session to admin:
newgrp admin
2. To change the primary group ID back to your original login group:
newgrp
FILES
/etc/group Group file; contains group IDs.
/etc/passwd Password file; contains user IDs.
RELATED INFORMATION
Processed November 8, 1990 NEWGRP(1,C) 1
NEWGRP(8,C) AIX Commands Reference NEWGRP(8,C)
See the following commands: "login" and "adduser, users."
Processed November 8, 1990 NEWGRP(8,C) 2