Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > module Process > initgroups
initgroups(user, group) -> [Integer]
user が属するグループのリストを更新し、group をそのリストに加えます。
このメソッドを呼ぶには root 権限が必要です。