summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc6
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) {
OpenPOWER on IntegriCloud