[packages/eventum: 11/14] seems only reliable and useful way to switch user is sudo

Jakub Bogusz qboosh at pld-linux.org
Mon Apr 23 19:40:42 CEST 2018


On Mon, Apr 23, 2018 at 07:13:53PM +0200, glen wrote:
> commit db2ce4e265ef36c31a6bef09e13a300d756d927b
> Author: Elan Ruusamäe <glen at delfi.ee>
> Date:   Mon Apr 16 22:10:58 2018 +0300
> 
>     seems only reliable and useful way to switch user is sudo

>  # run database update if configured
>  test -s %{_webappdir}/config.php && \
> -runuser -u http -- %{_appdir}/bin/upgrade.php || :
> +sudo -H -u http -- %{_appdir}/bin/upgrade.php || :

Why not su?
su - http -s /bin/sh ...


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list