From de02e60a3cee01491bc1af5a9971f1f5119fa607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agah=20=C3=96z?= Date: Mon, 10 Aug 2020 16:41:58 +0300 Subject: [PATCH] update registiration.py add module --- src/base/registration/registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/registration/registration.py b/src/base/registration/registration.py index 724a6ad..aa3c59b 100644 --- a/src/base/registration/registration.py +++ b/src/base/registration/registration.py @@ -534,6 +534,7 @@ class Registration: self.util.execute(change_home.format(new_home_dir, new_username)) self.logger.debug("User: '{0}' will be enabled and changed username and home directory of username".format(p.pw_name)) + def disable_local_users(self): passwd_cmd = 'passwd -l {}' change_home = 'usermod -m -d {0} {1}' @@ -557,7 +558,6 @@ class Registration: Util.execute(change_home.format(new_home_dir, new_username)) Util.execute(change_permisson.format(new_home_dir)) - def change_permissions_for_local_users(self): add_user_conf_file = "/etc/adduser.conf" file_dir_mode = open(add_user_conf_file, 'r')