Интерактивная система просмотра системных руководств (man-ов)
newgrp (1)
newgrp (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
>> newgrp (1) ( FreeBSD man: Команды и прикладные программы пользовательского уровня )
newgrp (1) ( Русские man: Команды и прикладные программы пользовательского уровня )
newgrp (1) ( Linux man: Команды и прикладные программы пользовательского уровня )
newgrp (1) ( POSIX man: Команды и прикладные программы пользовательского уровня )
newgrp (8) ( Русские man: Команды системного администрирования )
BSD mandoc
NAME
newgrp
- change to a new group
SYNOPSIS
[-l
]
[group
]
DESCRIPTION
The
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 STATUS
The
utility attempts to start the shell regardless of whether group IDs
were successfully changed.
If an error occurs and the shell cannot be started,
exits >0.
Otherwise, the exit status of
is the exit status of the shell.
Group passwords are inherently insecure as there is no way to stop
users obtaining the crypted passwords from the group database.
Their use is discouraged.