Lines Matching refs:pw
191 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2() argument
204 temporarily_use_uid(pw); in auth_rhosts2()
215 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2()
239 if (pw->pw_uid == 0) in auth_rhosts2()
243 client_user, pw->pw_name)) { in auth_rhosts2()
249 client_user, pw->pw_name)) { in auth_rhosts2()
260 if (stat(pw->pw_dir, &st) == -1) { in auth_rhosts2()
262 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2()
264 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2()
268 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2()
271 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2()
273 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2()
277 temporarily_use_uid(pw); in auth_rhosts2()
284 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2()
297 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2()
300 "bad modes for %.200s", pw->pw_name, path); in auth_rhosts2()
319 client_user, pw->pw_name)) { in auth_rhosts2()
326 client_user, pw->pw_name); in auth_rhosts2()