MAN page from OpenSuSE pwdutils-3.2.5-2.4.1.x86_64.rpm
Section: User Commands (1)
Updated: April 2004Index
newgrp - change effective group IDsg - execute command with different group ID
]sggroup -c command
command changes the user's real and effetive group IDby replacing the current shell with a new shell. A new shell is launchedeven if an error occours.
A password is requested if the group has a password and the user is notlisted in the group file as being a member of that group. The passwordcan be changed with thegpasswd(1)command.
If the new effective group ID is not in the supplementary group list,newgrp will add the new group ID to the supplementary list, too.
With no operands and options, newgrp changes the user's group IDs(real and effective) back to the group specified in password and groupfile.
The sg command works like the newgrp command, except thatit executes the given command with /bin/sh and upon exit thegroup ID of the current shell is not changed.
- -l, --login
- reinitialize the environment as if the user logged in.
- Print a help list.
- -u, --usage
- Print a short usage message.
- -v, --version
- Print program version.
Thorsten Kukuk <kukukAATTsuse.de>
- SEE ALSO
This document was created byman2html,using the manual pages.