(RADIATOR) Switch to non root id and logfile ownership
Markus Moeller
huaraz at moeller.plus.com
Fri Feb 22 13:42:45 CST 2008
> Hi,
>
> On Thu, 21 Feb 2008, Markus Moeller wrote:
>
>> I think I mentioned before that I get access problems when starting as
>> root and switch the user id. If I user variables in the logfile name it
>> is very difficult to make sure at each restart that the files is first
>> created with the right ownership. I patched Util.pm to check the file
>> ownership and change it when required before attempting to write to it.
>
> this generally happens when you start radiator as root in a trace level
> higher than 3 in which case raditor will log things before reaching the
> point where it switches the uid/gid.
>
> So this would normally not happen in a production environment where you
> run radiator in trace level 3 or lower.
>
>> Do you see a problem with it ?
>
> it should work in all trace levels. Have you checked that ?
It is independant of the trace level. I check everytime when Radiator logs
events.
>
> Greetings
> Christian
>
>> Markus
>>
Markus
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list