# 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
Was ist los mit meinem suoder www-data? Früher hat es funktioniert ...
Vermutlich liegt das an dem /usr/sbin/nologin, aber wie kann ich dann rootfür dieses eine Skript aufhören, ohne andere Dienste auf dem System zu beeinträchtigen ( nologinwurde vom DebianTeam aus einem guten Grund ausgewählt, möchte ich glauben)?
/bin/shstandardmäßig verwendet wird, und Sie müssen die-sOption nur angeben, wenn Sie zu/bin/bashoder ähnlich wechseln möchten .