I don't need it in linux and solaris anymore. What i wanted was to know whether i had permission to execute a given file from within my program, depending on who i was logged in as, and where I was. On Windows I always needed to be Admin user.

All is good now