diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-06 12:07:45 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-06 12:07:45 -0400 |
commit | 2bb07efc5216f654e16751656553bae60539c115 (patch) | |
tree | 21a802948e03df0e5c074ddc7ee6cf08124c92ee | |
parent | 725443038cfdcdb44d8c3891d8aee98878e6f6e5 (diff) | |
download | pfsense-2bb07efc5216f654e16751656553bae60539c115.zip pfsense-2bb07efc5216f654e16751656553bae60539c115.tar.gz |
We need to be RW to modify user information.
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 1ad61c6..5f6d77c 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -227,6 +227,8 @@ function local_sync_accounts() { function local_user_set(& $user) { global $g, $debug; + conf_mount_rw(); + $home_base = "/home/"; $user_uid = $user['uid']; $user_name = $user['name']; @@ -312,10 +314,13 @@ function local_user_set(& $user) { file_put_contents("{$user_home}/.ssh/authorized_keys", $keys); chown("{$user_home}/.ssh/authorized_keys", $user_name); } + + conf_mount_ro(); } function local_user_del($user) { global $debug; + /* remove all memberships */ local_user_get_groups($user); @@ -327,6 +332,7 @@ function local_user_del($user) { $fd = popen($cmd, "w"); fwrite($fd, $user['password']); pclose($fd); + } function local_user_set_password(& $user, $password) { |