newgrp man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

NEWGRP(1)		  BSD General Commands Manual		     NEWGRP(1)

     newgrp — change to a new group

     newgrp [-l] [group]

     The newgrp utility creates a new shell execution environment with modi‐
     fied 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 speci‐
     fied effective and real group IDs.	 The user will be prompted for a pass‐
     word 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.

     The 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.

     csh(1), groups(1), login(1), sh(1), su(1), umask(1), group(5), passwd(5),

     The newgrp utility conforms to IEEE Std 1003.1-2001 (“POSIX.1”).

     A newgrp utility appeared in Version 6 AT&T UNIX.

     Group passwords are inherently insecure as there is no way to stop users
     obtaining the crypted passwords from the group database.  Their use is

BSD				 May 23, 2002				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net