jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] jk_check - hashlib/PREFIX


From: Olivier Sessink
Subject: Re: [Jailkit-users] jk_check - hashlib/PREFIX
Date: Sat, 05 Feb 2011 09:21:16 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

this is already fixed in cvs, but not yet released. PREFIX should be
EXEPREFIX.

Olivier

On 02/04/2011 11:35 PM, tiri wrote:
> 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
> 
> 
> _______________________________________________
> Jailkit-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/jailkit-users




reply via email to

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