It's [`Process#initgroups(username, primary_gid)`](http://ruby-doc.org/core-1.9.3/Process.html#method-c-initgroups), so `self.uid` is correct.