I'm writing a daemon, which should upload images for given URLs, so the question is where to store this images. This daemon may run as a user that doesn't have a home directory defined, so I confused about upload directory. Prompt me the true linux way. Thanks!
The true "Linux" way is to have a config file somewhere that defines that value and default to /var/lib/app-name/
.