Sudo vs. root

Brian McKee brian.mckee at gmail.com
Fri Apr 16 21:30:31 UTC 2010


On Fri, Apr 16, 2010 at 4:54 PM, Dotan Cohen <dotancohen at gmail.com> wrote:
> I have a neighbor who runs some Java server on his Ubuntu machine. He
> actually logs into the GUI as root and then runs the server from the
> terminal.

Seems to me the issue here really is how he's starting it.
It should start itself so to speak.

Put it in /etc/init.d/rc.local or /etc/crontab or whatever and let the
system itself start it.

If for some reason he really has to start it manually, try 'sudo -i'
to get a root prompt and run it from there.  I *think* that will get
all your ENV variables the way required.

Brian




More information about the ubuntu-users mailing list