Hi,

On Mon, Mar 31, 2014 at 07:22:33PM +0200, Axel Beckert wrote:
> > > Granted. Is there a common way or best practise to get the proper
> > > group for log files?
[...]
> I rather wondered how to make sure the log file is created with
> group adm rather than which group should be used for that.
> 
> What I wonder is if there is any other way then explicitly "chown()"
> the file when I've written to it? (In Perl preferably.) Something like
> umask, just for group, similar to newgrp, but without spawning a new
> process.
> 
> I'll ask in the Debian Perl Group's IRC channel.

mgv on #debian-perl came to help: What I want and what probably helps
is either setting $( or $) or using POSIX::setgid.

                Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to