NEWGRP(1) | NetBSD General Commands Manual | NEWGRP(1) |
newgrp | [-l] [group] |
The newgrp command accepts the following options:
The group is a group name or non-negative numeric group ID from the group database. The real and effective group IDs are set to group or the group ID associated with the group name.
If group is not specified, newgrp restores the user's real and effective group IDs to the user's primary group specified in the password database. The user's supplementary group IDs are restored to the set specified for the user in the group database.
If the user is not a member of the specified group, and the group requires a password, the user will be prompted for the group password.
June 6, 2007 | NetBSD 5.99 |