From 35b50a2c71f127b1ad8d8c7f4964c50c6ccfb292 Mon Sep 17 00:00:00 2001 From: nbenedek Date: Sat, 11 Jun 2022 21:41:33 +0200 Subject: [PATCH] users: create home directories for newly created users Test I made: Created a few users, then appied the changes and rebooted FreedomBox. After reboot I created another user whose home directory could now be listed. Reviewed-by: Sunil Mohan Adapa --- actions/users | 1 + plinth/modules/users/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/actions/users b/actions/users index d7f06db71..759b847eb 100755 --- a/actions/users +++ b/actions/users @@ -262,6 +262,7 @@ def configure_ldapscripts(): aug.set('/files' + LDAPSCRIPTS_CONF + '/USUFFIX', '"ou=Users"') aug.set('/files' + LDAPSCRIPTS_CONF + '/GSUFFIX', '"ou=Groups"') aug.set('/files' + LDAPSCRIPTS_CONF + '/PASSWORDGEN', '"true"') + aug.set('/files' + LDAPSCRIPTS_CONF + '/CREATEHOMES', '"yes"') aug.save() diff --git a/plinth/modules/users/__init__.py b/plinth/modules/users/__init__.py index b90b22251..e3a3ee464 100644 --- a/plinth/modules/users/__init__.py +++ b/plinth/modules/users/__init__.py @@ -45,7 +45,7 @@ class UsersApp(app_module.App): app_id = 'users' - _version = 3 + _version = 4 can_be_disabled = False