From 2bb07efc5216f654e16751656553bae60539c115 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 6 Jul 2009 12:07:45 -0400 Subject: We need to be RW to modify user information. --- etc/inc/auth.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') 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) { -- cgit v1.1