User id obtained using os.getuid rather than os.environ['USER']