Run from another user #19
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
It should be supported to run forgebuild from another user when running as an unprivileged script. Typical usecase is PHP (running as www-data) will run my forgebuild as myself.
However, setuid bit doesn't work with interpreted script for security reasons (unless you patch the kernel).
So either we give full write permissions to others to ~/.forgebuild and all side-effects folders... or we figure out a way for PHP to start forgebuild as myself.
Or just document that forgebuild.sh can only be run as the user calling the script, which is only a problem when calling from another user's process (such as PHP running as www-data)
Even when running with suid on the rust version, the permissions aren't passed by git (bug report) to its subprocesses so stuff fails with submodule when doing
git clone --recursive
.It seems the only way to run from another user is with
/etc/sudoers
rules. This should be documented