jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] jk_check - hashlib/PREFIX


From: tiri
Subject: [Jailkit-users] jk_check - hashlib/PREFIX
Date: Fri, 04 Feb 2011 23:35:18 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

Hello list,
currently I use 2.13 and are getting following error when starting

$ jk_check -v -c /etc/jailkit/jk_check.ini /home/sftproot


/usr/sbin/jk_check:38: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/sbin/jk_check", line 289, in <module>
    main()
  File "/usr/sbin/jk_check", line 286, in main
    activateConfig(configfile, verbose)
  File "/usr/sbin/jk_check", line 235, in activateConfig
    jails = testrealpasswd()
  File "/usr/sbin/jk_check", line 214, in testrealpasswd
    chrootsh = os.path.join(PREFIX, '/sbin/jk_chrootsh')
NameError: global name 'PREFIX' is not defined

Even if I add PREFIX='/usr' to get chrootsh found, it does not work (here with modified jk_check).

$ jk_check -v -c /etc/jailkit/jk_check.ini /home/sftproot
/usr/sbin/jk_check:38: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File "/usr/sbin/jk_check", line 290, in <module>
    main()
  File "/usr/sbin/jk_check", line 287, in main
    activateConfig(configfile, verbose)
  File "/usr/sbin/jk_check", line 236, in activateConfig
    jails = testrealpasswd()
  File "/usr/sbin/jk_check", line 216, in testrealpasswd
    if (rpw[6].trim() != chrootsh):
AttributeError: 'str' object has no attribute 'trim'

Operating System is RHEL6 x86_64.

Any help is appreciated.
Best regards,
Thomas

--
tiri GmbH
Lauenburger Str. 31a
21493 Schwarzenbek
Tel. 04151 8674995
Fax. 04151 8674996
Net. http://www.tiri.li

Geschäftsführer: Anja Baumann, Thomas Baumann
Sitz Schwarzenbek, Amtsgericht Lübeck, HRB 8837 HL




reply via email to

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