[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-dev] Issue with jk_update - 2.21

From: Tahder Xunil
Subject: [Jailkit-dev] Issue with jk_update - 2.21
Date: Fri, 10 Jan 2020 17:50:31 +1300


Got an issue with jk_update using the latest version 2.21
jk_update -j /home/students -d
Traceback (most recent call last):
  File "/sbin/jk_update", line 290, in <module>
  File "/sbin/jk_update", line 272, in main
    if (not config.has_key('hardlink')):
AttributeError: 'dict' object has no attribute 'has_key'

Any hint what to do next with this? Currently working in Centos 8, using python3.

Initial got an issue but this is resolved by deleting one of the line/comment in includesections
jk_init  -v -j /home/students basicshell
Traceback (most recent call last):
  File "/sbin/jk_init", line 261, in <module>
  File "/sbin/jk_init", line 258, in main
    activateConfig(config, jail, args)
  File "/sbin/jk_init", line 164, in activateConfig
  File "/usr/lib64/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib64/python3.6/configparser.py", line 1092, in _read
    fpname, lineno)
configparser.DuplicateOptionError: While reading from '/etc/jailkit/jk_init.ini' [line 118]: option 'includesections' in section 'openvpn' already exists

comment = jail for the openvpn daemon
paths = /usr/sbin/openvpn
users = root,nobody
groups = root,nogroup
#includesections = netbasics
devices = /dev/urandom, /dev/random, /dev/net/tun
includesections = netbasics, uidbasics
need_logsocket = 1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]