Module utils

Source
Expand description

Utilities for signstar-config.

Enumsยง

Error
An error that may occur when using signstar-config utils.
NameOrUid
A name or uid of a system user on a host

Functionsยง

fail_if_not_root ๐Ÿ”’
Fails if not running as root.
fail_if_root ๐Ÿ”’
Fails if running as root.
get_command ๐Ÿ”’
Returns the path to a command.
get_current_system_user ๐Ÿ”’
Returns the [User] associated with the current process.
get_system_user_pair ๐Ÿ”’
Returns a SystemUserId and matching Unix system [User] associated with it.
match_current_system_user ๐Ÿ”’
Checks whether the current system user is the targeted user.