User ids and group ids of the process. Both return integer vectors with names: real, effective and saved.

ps_uids(p = ps_handle())

ps_gids(p = ps_handle())

Arguments

p

Process handle.

Value

Named integer vector of length 3, with names: real, effective and saved.

Details

Both work for zombie processes.

They are not implemented on Windows, they throw a not_implemented error.

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=4139632, NAME=R, AT=2025-10-29 18:06:27.39
ps_uids(p)
#>      real effective     saved 
#> 707801213 707801213 707801213 
ps_gids(p)
#>      real effective     saved 
#> 707801206 707801206 707801206