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. Processed March 8, 1991 NEWGRP(1,C) 1 NEWGRP(8,C) AIX Commands Reference NEWGRP(8,C) RELATED INFORMATION See the following commands: "csh," "login," and "adduser, users." Note: The csh command contains a built-in subcommand named newgrp. This subcommand and the newgrp command do not always work in the same way. For more information on the newgrp subcommand, see the csh command. Processed March 8, 1991 NEWGRP(8,C) 2