Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Process::Sys.issetugid

Process::Sys.issetugid → true or false

Returns true if the process was created as a result of an execve(2) system call which had either of the setuid or setgid bits set (and extra privileges were given as a result) or if it has changed any of its real, effective or saved user or group IDs since it began execution.

See also .getuid .setegid .getgid .seteuid also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1