[smokeping-users] [BUG] setting umask for new RRD files
ntyni+smokeping-users at mappi.helsinki.fi
Tue May 4 20:40:23 CEST 2010
On Tue, May 04, 2010 at 05:29:46PM +0200, Thomas Lobker wrote:
> We are using Smokeping in a master slave setup. When adding a new target
> in the Smokeping configuration, Smokeping automatically creates the
> appropiate RRD file on the master server. This file should be writable
> to the Apache2 user (in our case www-data) to allow updates from the
> slave. For some reason Smokeping is forcing a umask 022 on the data
> folder, rendering the RRD file not writable to the www-data group.
Have a look at the 'precreateperms' configuration setting.
> In the following file:
Based on this, I suspect you're using a Debian or Ubuntu smokeping
package <= 2.3.6-3. It would have been good to mention this.
I spent a considerable effort reworking related things in 2.3.6-4,
so you might want to check if that works better for you. Make sure to
take backups first, as downgrading back is unsupported.
The suexec thing Tobi mentioned is probably the best choice where
available, but unfortunately I couldn't find a way to integrate that with
Debian packaging. Web site configuration support infrastructure for Debian
packages is still work in progress and the work is lacking manpower AFAIK.
If somebody wants to improve things, the Debian smokeping package is up
for adoption. See <http://bugs.debian.org/568742>.
Niko Tyni ntyni at debian.org
More information about the smokeping-users