Looking at the snippet of code: Isn't that sample (probably) confusing group and user?
process.setgid('tlhunter');
process.setuid('users');
I'd expect that 'users' is the group here and 'tlhunter' the user 'thomas l. hunter'?