http://qs321.pair.com?node_id=700732


in reply to Re: Script not setting ownship of new directory
in thread Script not setting ownership of new directory

chown will allow a user to change the group of a file to any group that the user is member of. But, in general, you need to have effective root privs to change the owner.

Replies are listed 'Best First'.
Re^3: Script not setting ownship of new directory
by graff (Chancellor) on Jul 29, 2008 at 05:29 UTC
    Right. It seems I misunderstood the OP's question. I thought (mistakenly) he was talking about changing user ownership. If it's just a matter of changing group ownership, then yes, chown should work fine without root privilege and without problems, so long as the current user is included in the target group.