Lines Matching refs:pw
156 auth_rhosts(struct passwd *pw, const char *client_user) in auth_rhosts() argument
162 return auth_rhosts2(pw, client_user, hostname, ipaddr); in auth_rhosts()
166 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2_raw() argument
178 if (pw == NULL) in auth_rhosts2_raw()
182 temporarily_use_uid(pw); in auth_rhosts2_raw()
192 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2_raw()
206 if (pw->pw_uid != 0) { in auth_rhosts2_raw()
208 client_user, pw->pw_name)) { in auth_rhosts2_raw()
214 client_user, pw->pw_name)) { in auth_rhosts2_raw()
224 if (stat(pw->pw_dir, &st) < 0) { in auth_rhosts2_raw()
226 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw()
228 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw()
232 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2_raw()
235 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2_raw()
237 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2_raw()
241 temporarily_use_uid(pw); in auth_rhosts2_raw()
248 pw->pw_dir, rhosts_files[rhosts_file_index]); in auth_rhosts2_raw()
259 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2_raw()
262 pw->pw_name, buf); in auth_rhosts2_raw()
273 if (check_rhosts_file(buf, hostname, ipaddr, client_user, pw->pw_name)) { in auth_rhosts2_raw()
279 hostname, ipaddr, client_user, pw->pw_name); in auth_rhosts2_raw()
290 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, in auth_rhosts2() argument
296 ret = auth_rhosts2_raw(pw, client_user, hostname, ipaddr); in auth_rhosts2()