Re: Environment Variables for sudo

2006-03-06 Thread Timothy Cowlishaw
On 6 Mar 2006, at 22:02, Star King of the Grape Trees wrote: (First, is that as typo? (spurious space in PATH)) I would assume that sudo merely executes the program, and does not start a new shell (unless you ask it to), thus my assumption is that it's your env, merely executed with root's

Environment Variables for sudo

2006-03-06 Thread Timothy Cowlishaw
Hi All, am having a bit of a problem with setting environment variables on my web server. I need to set the following, for all users, including root. i have added the following to /etc/profile, /etc/bash.bashrc, / root/.profile and /root/.bashrc: export PATH=$PATH:/usr/local/java/j2sdk/bin