mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
setting DEHYDRATED_USER does not check uid first #425
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jmgurney on GitHub (Aug 20, 2019).
If you set DEHYDRATED_USER (to prevent accidentally running as root), it checks to make sure sudo is available before verifying the current user. If you have a system w/o sudo, instead of running, it errors out:
expected behavior: That when the script is running as the specified DEHYDRATED_USER (and _GROUP), and sudo is not installed, that the script will run as expected.