Re: Setting environment variables whitout shell



On Fri, 14 Sep 2007 05:00:23 -0700, Tiago Rossi
<tiago.rossi@xxxxxxxxx> wrote:


Hi people,

is there a way to setup environmente variables to an application
running without shell ?
I setup the permitions of may executable with 7110 to let it execute
with a different user,
so when i start the application with sudo, it seems that it doesn't
start a shell , and consequently does not setup environment variables
defined in ~/.profile

Perhaps you want "sudo -i". The -i option was added to sudo in version
1.6.7p5. If you use sudo to run the application, it doesn't need setuid
permissions. In fact, those permissions allow any user to run that
application as its owner.

--
It's better to be wanted for murder that not to be wanted at all.
-- Marty Winch
.