added abstractions for using getpwuid()