$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).

Examples

Change effective user ID of the shell process to 0 without sufficient permissions
1
EUID=0
Output:
1
zsh: failed to change effective user ID: permission denied
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $EUID - probieren Sie es jetzt aus!
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches