NEWGRP(1) | 用户命令 | NEWGRP(1) |
名称¶
newgrp - 登录到一个新组大纲¶
newgrp
[-] [ group]
描述¶
The newgrp command is used to change the current group ID during a login session. If the optional - flag is given, the user's environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.配置文件¶
在 /etc/login.defs 中有如下配置变量,可以用来更改此工具的行为: SYSLOG_SG_ENAB (boolean)允许“syslog”记录
sg 的活动。
文件¶
/etc/passwd用户账户信息。
/etc/shadow
安全用户账户信息。
/etc/group
组账户信息。
/etc/gshadow
安全组账户信息。
参见¶
id(1), login(1), su(1), sg(1), gpasswd(1), group(5), gshadow(5).2012-05-25 | shadow-utils 4.1.5.1 |