now sets both uid and gid