Process.uid of 0 means that the current process is running as root (i.e. either via sudo or simply under the root user), as per: http://www.linfo.org/uid.html.