diff options
author | jim-p <jimp@pfsense.org> | 2010-06-29 16:26:18 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-29 16:26:18 -0400 |
commit | 0d5ff3835df7b59894283536a17b03ef29700727 (patch) | |
tree | eed9c6b00759a44dc49c5c3a0f44d7a48f38837e /etc/inc/auth.inc | |
parent | af31b277876c2da265c8ef40d6d4da1a7cfda810 (diff) | |
download | pfsense-0d5ff3835df7b59894283536a17b03ef29700727.zip pfsense-0d5ff3835df7b59894283536a17b03ef29700727.tar.gz |
Let pw handle the creation of the home directory rather than do it in php.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 7dab743..2ce9f57 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -248,10 +248,6 @@ function local_user_set(& $user) { if (!is_dir($home_base)) mkdir($home_base, 0755); - // Ensure $user_home exists and is writable - if(!is_dir($user_home)) - mkdir($user_home, 0755); - /* configure shell type */ if (!(userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all"))) { if (!userHasPrivilege($user, "user-copy-files")) @@ -279,7 +275,7 @@ function local_user_set(& $user) { /* determine add or mod */ if (!strncmp($pwread, "pw:", 3)) { - $user_op = "useradd -o"; + $user_op = "useradd -m -o"; } else { $user_op = "usermod"; } |