[Red5] sudo red5 problem
Timon Reinhard
timon at netnoise.de
Fri Jun 22 10:54:31 EDT 2007
I was wrong, quite sure sudo dropped your $JAVA_HOME (an java 1.4 seems
to be in your path). You can configure /etc/sudoers to keep certain
environment variables after sudo.
(Why don't you simply start the server via an init script on system boot?)
Regards,
Timon
Grant Kohler schrieb:
> Is there a way to change the $JAVA_HOME environment for sudo?
>
> Thanks,
> -Grant
>
> -------------------------------------
> Grant Kohler
> gpk at reachmdc.com
> REACHMDConsult, Inc.
> http://www.reachmdc.com/
> (770) 853-3556
>
>
> -----Original Message-----
> From: Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] On Behalf
> Of Timon Reinhard
> Sent: Friday, June 22, 2007 9:56 AM
> To: Red5 at osflash.org
> Subject: Re: [Red5] sudo red5 problem
>
> Hi Grant,
>
> I guess your $JAVA_HOME environment variable points to the installation
> path of 1.4 (after sudoing)...
>
> How do you start red5? Using red5.sh?
>
> Regards,
> Timon
>
>
>
> Grant Kohler schrieb:
>> All,
>>
>> I'm using red5 on a Fedora Core 5 box. I'm trying to run the red5
> server
>> as a regular user and not root, however that presents the problem that you
>> can't run rtmpt over port 80 unless you have root privileges. I decided
> to
>> give sudo privileges for the user I want to run red5 as to run apache ant
>> and I've successfully done that. However, every time I run the sudo ant
>> server command as the regular user in the red5 directory, the installed
>> version of ant tries to use the default version of java that was installed
>> on the linux box which is 1.4 which I know won't work with red5 when you
> are
>> trying to bind it to a port lower than 1024. I have a version of java 1.5
>> installed on the linux box, and when I run the command java -version as
> both
>> the regular user and root user it tells me the version it's using is the
>> java 1.5, however for some reason the sudo command I'm running keeps
> trying
>> to use the 1.4 version of java. Is there a separate classpath to set when
>> using sudo? I really have no idea what else to try, any suggestions would
>> be much appreciated!
>>
>>
>>
>> Thanks,
>>
>> -Grant
>>
>>
>>
>> -------------------------------------
>>
>> Grant Kohler
>>
>> gpk at reachmdc.com
>>
>> REACHMDConsult, Inc.
>>
>> http://www.reachmdc.com/
>>
>> (770) 853-3556
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
More information about the Red5
mailing list