Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-08-2008, 10:16 AM   #1
Registered: Dec 2004
Location: Atlanta, GA U.S.
Distribution: I play with them all :-)
Posts: 316

Rep: Reputation: 30
How to set environment variables for user 'nobody'?

Apache running on my box runs threads as 'nobody'. In order for my perl cgi script to run using DB2 queries, it needs to have environment variables set. Does anyone know how I can set environment variables for nobody?
Old 05-08-2008, 11:22 AM   #2
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
You could try this
user@yourbox$]sudo su nobody
$] ENV_VAR=test

Last edited by mechdave; 05-08-2008 at 11:26 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you set environment variables leland9000 Linux - Software 1 04-01-2008 05:44 PM
set environment variables johnvdster Linux - Newbie 2 05-30-2006 06:15 AM
how do i set environment variables? guitarfella Slackware 2 12-05-2004 12:05 AM
How to set environment variables anjaan Linux - General 3 06-10-2004 03:04 PM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 02:28 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration