e.g. the www-data user has no valid shell. If you want to test a linux command for this user use the following command as root user
su -c "COMMAND" USER