Function fail_if_root

Source
pub(crate) fn fail_if_root(user: &User) -> Result<(), Error>
Expand description

Fails if running as root.

Evaluates the effective user ID.

ยงErrors

Returns an error if the effective user ID is that of root.