I have a couple of system users that have no password set, login disabled and no home directories. They are used solely to run FastCGI processes for a couple of websites.
I want to avoid hard coding in sensitive data into the source code such as passwords and wanted to use environment variables instead so the question is how do you set environment variables for system users with no home directory and no login ability.
Normally I'd just put them in ~/.bashrc but obviously that won't work. I also can't put them in /etc/bashrc since that would mean all users would see the sensitive information.
Has anyone got any suggestions at all? This is on Ubuntu Server 12.04 LTS if that makes a difference.
Edit: As per the comment below I'm using Nginx for the HTTP server.
mod_env
could do this for apache).