http://forums.w5j6stm77zs6652pgsij4awcjeel3eco7kvipheu6mtr623eyyehj4yd.onion/t/derivative-maker-build-script-running-as-user-versus-root-versus-sudo-design/76?_escaped_fragment_=
At the same time, the build script should be non-interactive, i.e. not require the user to enter a sudo password in the middle of the build, let alone several times. Therefore currently, the build script is expected to be run under user (" user ") and with sudo. Whenever an action should be performed as user instead of root, it uses $SUDO_TO_USER which results in: sudo --non-interactive -u user Why not run all under root?