|
Lines 1211-1221
Link Here
|
| 1211 |
if (!pw) |
1211 |
if (!pw) |
| 1212 |
return 0; |
1212 |
return 0; |
| 1213 |
|
1213 |
|
|
|
1214 |
if (pw->pw_shell[0] != '\0') { |
| 1214 |
/* deny if shell does not exists or is not executable */ |
1215 |
/* deny if shell does not exists or is not executable */ |
| 1215 |
if (stat(pw->pw_shell, &st) != 0) |
1216 |
if (stat(pw->pw_shell, &st) != 0) |
| 1216 |
return 0; |
1217 |
return 0; |
| 1217 |
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)))) |
1218 |
if (!((st.st_mode & S_IFREG) && (st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)))) |
| 1218 |
return 0; |
1219 |
return 0; |
|
|
1220 |
} |
| 1219 |
|
1221 |
|
| 1220 |
/* Return false if user is listed in DenyUsers */ |
1222 |
/* Return false if user is listed in DenyUsers */ |
| 1221 |
if (options.num_deny_users > 0) { |
1223 |
if (options.num_deny_users > 0) { |