Revision 774c9a00
Added by Scott Ullrich about 16 years ago
etc/inc/auth.inc | ||
---|---|---|
194 | 194 |
function local_user_set(& $user) { |
195 | 195 |
global $g, $debug; |
196 | 196 |
|
197 |
$home_base = "/home/"; |
|
198 |
|
|
199 |
if (!is_dir($home_base)) |
|
200 |
mkdir($home_base, 0755); |
|
201 |
|
|
197 |
$home_base = "/home/"; |
|
202 | 198 |
$user_uid = $user['uid']; |
203 | 199 |
$user_name = $user['name']; |
204 | 200 |
$user_home = "{$home_base}/$user_name"; |
205 | 201 |
$user_shell = "/etc/rc.initial"; |
206 | 202 |
$user_group = "nobody"; |
207 | 203 |
|
204 |
// Ensure $home_base exists and is writable |
|
205 |
if (!is_dir($home_base)) |
|
206 |
mkdir($home_base, 0755); |
|
207 |
|
|
208 |
// Ensure $user_home exists and is writable |
|
209 |
if(!is_dir($user_home)) |
|
210 |
mkdir($user_home, 0755); |
|
211 |
|
|
208 | 212 |
/* configure shell type */ |
209 | 213 |
if (!userHasPrivilege($user, "user-shell-access")) { |
210 | 214 |
if (!userHasPrivilege($user, "user-copy-files")) |
... | ... | |
894 | 898 |
return true; |
895 | 899 |
} |
896 | 900 |
|
897 |
?>
|
|
901 |
?> |
Also available in: Unified diff
Ensure $user_base directory exists and is writable. Kills ugly warning on
fresh installation.