*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> newgrp (1)              



NAME    [Toc]    [Back]

     newgrp -- change to a new group

SYNOPSIS    [Toc]    [Back]

     newgrp [-l] [group]

DESCRIPTION    [Toc]    [Back]

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

DIAGNOSTICS    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

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

STANDARDS    [Toc]    [Back]

     The newgrp utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').

HISTORY    [Toc]    [Back]

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

BUGS    [Toc]    [Back]

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

FreeBSD 5.2.1			 May 23, 2002			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
chgrp OpenBSD change group
newgrp Linux Change group ID
chgrp FreeBSD change group
chown IRIX change owner or group
chgrp Linux change group ownership
chown OpenBSD change file owner and group
nischgrp HP-UX change the group owner of an NIS+ object
lchown NetBSD change owner and group of a file
fchown FreeBSD change owner and group of a file
chown IRIX change owner and group of a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service