# 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这个脚本而又不损害系统上的其他服务(我想相信,这nologin是由Debian团队选择的充分理由)?
/bin/sh默认使用该-s选项,并且仅当您想更改为/bin/bash或类似选项时,才必须指定选项。