[gold-users] Making gold.log world writable
scottmo at adaptivecomputing.com
Tue Jun 7 12:46:25 MDT 2011
Here is a little tidbit in case this has ever bitten you.
Normally in Gold, the client commands run suidperl and are setuid to the gold owner, hence the gold.log is always created as the gold user and there is no problem.
There may be some circumstances where you might use the gold API and find that the gold.log is being created as one user, but then when another user tries to write to the log, he gets permission denied because it was created read-only as the first user.
A workaround to this would be to have gold create the gold.log world writable. This can be accomplished by adding the following line to your gold.conf file:
log4perl.appender.Log.permissions = 438
(438 in decimal resolves to 666 in octal).
I am making a change to future versions of Gold to make this the default setting. It can be disabled or modified as desired.
More information about the gold-users