# su -l www-data ./http-app.py
This account is currently not available.
# su -l www-data -c ./http-app.py
This account is currently not available.
# su -c ./http-app.py www-data
This account is currently not available.
# su -lc ./http-app.py www-data
This account is currently not available.
# getent passwd www-data
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
# getent shadow www-data
www-data:*:16842:0:99999:7:::
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
私に何が問題になっていますsuかwww-data?以前は機能していました...
おそらくこれはのせいですが/usr/sbin/nologin、rootシステム上の他のサービスを損なうことなく、この1つのスクリプトをどのようにドロップしますか(正当な理由でチームnologinによって選択されたDebianと思います)。
/bin/shデフォルトで使用されていると誤って想定していたため、-sオプションを指定する必要があるのは、変更する場合などです/bin/bash。