Lines Matching refs:pw
190 auth_rhosts(struct passwd *pw, const char *client_user)
196 return auth_rhosts2(pw, client_user, hostname, ipaddr);
200 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname,
212 temporarily_use_uid(pw);
223 pw->pw_dir, rhosts_files[rhosts_file_index]);
245 if (pw->pw_uid == 0)
249 client_user, pw->pw_name)) {
255 client_user, pw->pw_name)) {
266 if (stat(pw->pw_dir, &st) < 0) {
268 "no home directory %.200s", pw->pw_name, pw->pw_dir);
270 "no home directory %.200s", pw->pw_name, pw->pw_dir);
274 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) ||
277 "bad ownership or modes for home directory.", pw->pw_name);
279 "bad ownership or modes for home directory.", pw->pw_name);
283 temporarily_use_uid(pw);
290 pw->pw_dir, rhosts_files[rhosts_file_index]);
301 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) ||
304 pw->pw_name, buf);
319 client_user, pw->pw_name)) {
326 client_user, pw->pw_name);
337 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,
340 return auth_rhosts2_raw(pw, client_user, hostname, ipaddr);