On this page
posix.geteuid
Prev: posix.getegid | Up: posix | Next: posix.stat_result
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.geteuid
Tags: #public #python3 #stdlib #posix
Import
import posix
from posix import geteuid
Signature & Overview
posix.geteuid()
Return the current process's effective user id.
Usage
import os
assert isinstance(os.geteuid(), int)
Gotchas
- Unix-only: Effective user ID (
0for root).
REPL Inspect
from posix import geteuid
help(geteuid)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/getegid Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/stat_result Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/abort Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib