summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-11 23:45:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-11 23:45:16 +0000
commitd7d8257c30a1be842f4b191e8b157a10e65a1940 (patch)
tree8f9fb180cad4d300f68015291fbebe3724ff5e61 /etc
parent0c49a2c3f3479ba650dcb23e814a00a77c2f377a (diff)
downloadpfsense-d7d8257c30a1be842f4b191e8b157a10e65a1940.zip
pfsense-d7d8257c30a1be842f4b191e8b157a10e65a1940.tar.gz
Oops, we need to mount rw before creating home dir.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index f532336..9e65c0a 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -178,12 +178,12 @@ function local_sync_accounts() {
function local_user_set(& $user) {
global $g, $debug;
+ conf_mount_rw();
+
$home_base = $g['platform'] == "pfSense" ? "/home" : "/var/home";
if (!is_dir($home_base))
mkdir($home_base, 0755);
- conf_mount_rw();
-
$user_uid = $user['uid'];
$user_name = $user['name'];
$user_home = "{$home_base}/$user_name";
OpenPOWER on IntegriCloud