๐Ÿ”’ Users

October 8, 2023 ยท View on GitHub

User identifier

Unix users are identified with a UID and a GID while Windows users are identified with a SID.

Consequently all methods based on UID or GID fail on Windows:

Privileged user

The privileged user is root on Unix and Administrator on Windows. Those are triggered with different mechanisms.

One can use is-elevated (and the related is-admin and is-root) to check it on any OS.

Other differences

The --secure-heap CLI flag does not do anything on Windows.

Summary

Do not rely on UID or GID.


Next (๐Ÿ“ก Networking / IPC)
Previous (๐Ÿ”’ Permissions)
Top