$EUID
–
Effective User ID
$EUID contains the effective user ID of the shell process.
With the sufficient permissions, a change to this variable will change the effective user ID of the shell process.
Use a subshell to launch a command with a different effective user ID: (EUID=0; command).
Links
Examples
- Change effective user ID of the shell process to 0 without sufficient permissions
- Output:
1EUID=01zsh: failed to change effective user ID: permission denied
BashSupport Pro 是一款支持 euid** 的 **Zsh 集成开发环境 - 立即试用!