#!/usr/bin/env python-thinlinc # -*-mode: python; coding: utf-8 -*- import os import sys import grp sys.path = ["/opt/thinlinc/modules"] + sys.path from thinlinc import ctccommon import hiveconf hive = hiveconf.open_hive(os.path.join(ctccommon.get_tl_prefix(), "etc/thinlinc.hconf")) groups = grp.getgrnam("tl-allowed-shadowers")[3] hive.set_string_list("/vsmserver/allowed_shadowers", groups)