> Normally, you can do getuid or geteuid to get the > user ID, > if it is zero, you know it's the root user. As simple as that, wow. :) Thanks Mike Send instant messages to your online friends http://uk.messenger.yahoo.com