On Mon, Apr 23, 2018 at 07:13:53PM +0200, glen wrote:
> commit db2ce4e265ef36c31a6bef09e13a300d756d927b
> Author: Elan Ruusamäe <g...@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/
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to