# 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
Co jest nie tak z moim sulub www-data? Kiedyś działało ...
Przypuszczalnie dzieje się tak z powodu /usr/sbin/nologin, ale jak mogę przejść rootdo tego jednego skryptu, bez narażania innych usług w systemie ( nologinwybrałem Debianzespół z dobrego powodu, chcę wierzyć)?
/bin/shjest używany domyślnie i musisz podać-sopcję tylko, jeśli chcesz zmienić na/bin/bashlub podobny.