http://www.perlmonks.org?node_id=91003


in reply to Re: Yet Another Security Question
in thread Yet Another Security Question

Aighearach is correct.
Generally you can only set the group ownership if you are a member of the new group to which you are changing or root under *nix