名称 (NAME)
newgrp - 登录到新的用户组中
总览 (SYNOPSIS)
newgrp [ group ]
描述 (DESCRIPTION)
Newgrp 改变调用者的用户组标识, 类似于 login(1). 调用者仍旧在线上, 当前目录也不变, 但是文件的访问权限将根据新的用户组 ID 计算.
如果没有指定用户组别, GID 将变成登录时的GID.
文件 (FILES)
/etc/group
/etc/passwd
另见 (SEE ALSO)
login(1), group(5)
#p#
NAME
newgrp - log in to a new group
SYNOPSIS
newgrp [ group ]
DESCRIPTION
Newgrp changes the group identification of its caller, analogously to login(1). The same person remains logged in, and the current directory is unchanged, but calculations of access permissions to files are performed with respect to the new group ID.
If no group is specified, the GID is changed to the login GID.
FILES
/etc/group
/etc/passwd
SEE ALSO
login(1), group(5)