This is a common issue. The solution is to set the GID first. Otherwise you no longer have the privileges required to set the GID.
In reply to Re: set gid by bv in thread set gid by halfcountplus