Шифрование пользовательских профилей

Отключена настройка пользователей во время первой загрузки, так как
теперь каждый профиль пользователя будет настраиватся при его входе
в сеанс (в зависимости от elog).

Добавлены переменные:
cl_install_home_crypt_set: параметр установки (шифровать
пользовательские профили)
master3.3 3.1.6
parent c9ccf59fff
commit baf962cd21

@ -108,18 +108,10 @@ create_nonroot_user() {
fi fi
} }
# create/update all user profile # create/update root profile
configure_users() { configure_users() {
if which cl-desktop &>/dev/null if which cl-desktop &>/dev/null
then then
for user in $(variable_value install.cl_migrate_user | sed -r "s/,/ /g")
do
HOME_DIR=`getent passwd $user | awk -F: '{ print( $6 ); }'`
if [[ -f $HOME_DIR/.calculate/ini.env ]]
then
cl-desktop $user
fi
done
cl-desktop root cl-desktop root
fi fi
} }

@ -62,6 +62,7 @@ class InstallInfo(CommonInfo):
cl_migrate_root_pwd = String cl_migrate_root_pwd = String
cl_migrate_data = Array(Array(String)) cl_migrate_data = Array(Array(String))
cl_install_home_crypt_set = Boolean
cl_autologin = String cl_autologin = String
os_install_net_fqdn = String os_install_net_fqdn = String
os_install_net_data = Array(Array(String)) os_install_net_data = Array(Array(String))
@ -140,6 +141,7 @@ class Wsdl:
'os_install_net_route_data',)) 'os_install_net_route_data',))
dv.addGroup(_("Users"), dv.addGroup(_("Users"),
normal=('cl_migrate_root_pwd','cl_migrate_data','cl_autologin'), normal=('cl_migrate_root_pwd','cl_migrate_data','cl_autologin'),
expert=('cl_install_home_crypt_set',),
hide=('cl_migrate_data',), hide=('cl_migrate_data',),
brief=('cl_migrate_user',)) brief=('cl_migrate_user',))
dv.addGroup(_("Audio"), dv.addGroup(_("Audio"),

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
__app__ = 'calculate-install' __app__ = 'calculate-install'
__version__ = '3.0.2' __version__ = '3.1.6'
import os import os
import sys import sys

@ -164,6 +164,15 @@ class VariableClMigrateRootPwd(UserHelper,Variable):
if not value: if not value:
raise PasswordError(_("Password for user %s missing")%"root") raise PasswordError(_("Password for user %s missing")%"root")
class VariableClInstallHomeCryptSet(UserHelper,Variable):
type = 'bool'
opt = ["--crypt-home","-C"]
untrusted = True
def init(self):
self.help = _("crypt user profiles")
self.label = _("Crypt user profiles")
class VariableClMigrateData(UserHelper,TableVariable): class VariableClMigrateData(UserHelper,TableVariable):
""" """
User migrate data table User migrate data table

@ -169,7 +169,7 @@ class build( distutils.command.build.build ) :
setup( setup(
name = 'calculate-install', name = 'calculate-install',
version = "3.1.5", version = "3.1.6",
description = "Calculate Linux installer", description = "Calculate Linux installer",
author = "Calculate Ltd.", author = "Calculate Ltd.",
author_email = "support@calculate.ru", author_email = "support@calculate.ru",

Loading…
Cancel
Save