How to Change the UID of a Running Process

Recent versions of Solaris come with a suite of tools known as the “/proc” tools, which list and/or modify process information in the kernel-maintained /proc filesystem. One of these tools, pcred, can be used to change (among other things) the UID of a running process, e.g.:


If you run a man proc, you’ll receive the manual page for the /proc tools - highly useful.