running command as user who has shell /usr/sbin/nologin

root@server:/var/www# su - www-data
This account is currently not available.
# damn.. that did not work but this does:
root@server:/var/www# su -s /bin/bash www-data
www-data@server:~$

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)