Query: newgrp
OS: osx
Section: 1
Links: osx man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NEWGRP(1) BSD General Commands Manual NEWGRP(1)NAMEnewgrp -- change to a new groupSYNOPSISnewgrp [-l] [group]DESCRIPTIONThe newgrp utility creates a new shell execution environment with modified real and effective group IDs. The options are as follows: -l Simulate a full login. The environment and umask are set to what would be expected if the user actually logged in again. If the group operand is present, a new shell is started with the specified effective and real group IDs. The user will be prompted for a password if they are not a member of the specified group. Otherwise, the real, effective and supplementary group IDs are restored to those from the current user's password database entry.EXIT STATUSThe newgrp utility attempts to start the shell regardless of whether group IDs were successfully changed. If an error occurs and the shell cannot be started, newgrp exits >0. Otherwise, the exit status of newgrp is the exit status of the shell.SEE ALSOcsh(1), groups(1), login(1), sh(1), su(1), umask(1), group(5), passwd(5), environ(7)STANDARDSThe newgrp utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').HISTORYA newgrp utility appeared in Version 6 AT&T UNIX.BUGSGroup passwords are inherently insecure as there is no way to stop users obtaining the crypted passwords from the group database. Their use is discouraged.BSDMay 23, 2002 BSD
Related Man Pages |
---|
newgrp(1) - mojave |
newgrp(1) - osx |
newgrp(1) - php |
newgrp(1) - x11r4 |
newgrp(1) - plan9 |
Similar Topics in the Unix Linux Community |
---|
UNix Bourne Shell |
Permissions issues |
"group by" using shell script? |
Newgrp fails on only 1 group |
Emulate group-by in shell script |