When you create a user and group, it is given a numeric value as well (look in /etc/passwd and /etc/group.

use chown [uuid]:[gid] (filename)

*grin*