I have a parent process running as 'root' user. After fork(), execl() and setuid()/setgid(), the child process is started as another OS user (say user1). Printing the environment shows that this is ...
I have this in /etc/profile in Fedora 17: PATH=$PATH:"/usr/pgsql-9.2/bin" EDITOR="/usr/bin/emacs -nw" PSQL_EDITOR="/usr/bin/emacs" PAGER="/usr/bin/less" export PATH USER LOGNAME MAIL HOSTNAME ...
I'm having some trouble with an upstart script of ours that changes user and starts up a few ruby daemon processes. In the past i would simply bash -c "do the business" -l someuser making sure to use ...
Possible Duplicate: How do I set a user environment variable? (permanently, not session) For a project I'm working on, I have a service that runs at startup which calls a script to set ...