$EGID  –  Effective Group ID

$EGID contains the effective group ID of the shell process.

With the sufficient permissions, a change to this variable will change the effective group ID of the shell process. Use a subshell to launch a command with a different effective group ID: (EGID=0; command).

Examples

Change effective group ID of the shell process to 0 without sufficient permissions
1
EGID=0
Output:
1
zsh: failed to change effective group ID: permission denied
BashSupport Pro 是一款支持 egid** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款