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


in reply to Script not setting ownership of new directory

You have to supply numeric uid and gids to chown.

See the documentation for chown for an example of how to translate user and group names to their numeric equivalents.