Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Process.groups=

(::Array[::Integer] arg0) -> ::Array[::Integer]
Process.groups = new_groups → new_groups

Sets the supplemental group access list to the given array of group IDs.

Example
Process.groups                     # => [0, 1, 2, 3, 4, 6, 10, 11, 20, 26, 27]
Process.groups = [27, 6, 10, 11]   # => [27, 6, 10, 11]
Process.groups                     # => [27, 6, 10, 11]
See also .groups .initgroups .gid= .kill also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0