Hi Ruben, To say this is fixed now, see commit log here:
https://github.com/pmacct/pmacct/commit/281eb61d555ba6f38ac8284f03139fe69dca6cbf If you prefer the pmacct-daily tarball instead, you have to wait until the night (builds 6:00am). Default files_umask value is 077 so mkdir with mode 777 will still create directory structures with mode 700; but then if you want to relax the umask, you have the flexibility you need. pmacct does not allow to set a umask less than 2 so the maximum mode you can achieve for a directory is 775 - which imho is sensible. Cheers, Paolo On Thu, Dec 17, 2015 at 10:49:45PM +0000, Paolo Lucente wrote: > Hi Ruben, > > I'm with you. Let me investigate and come back to you on this. > > Cheers, > Paolo > > On Wed, Dec 16, 2015 at 08:46:22PM +0100, Ruben Laban wrote: > > Hi, > > > > The setting files_umask is only used for files created by pmacctd, > > and not for directories created by pmacctd. One can argue that that > > is to be expected based on the name of the setting. But then I'd > > expect there to be a setting called dirs_umask or something like > > that as well. > > > > When using something like this: > > > > files_umask: 022 > > print_output_file: /var/lib/trafstat/spool/%Y/%m/%d/%s-%Y%m%d-%H%M > > > > The actual files will be 644. The year/month/day directories > > however, will be 700. > > > > Regards, > > Ruben > > > > _______________________________________________ > > pmacct-discussion mailing list > > http://www.pmacct.net/#mailinglists > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
