|
From: | tiri |
Subject: | [Jailkit-users] jk_check - jk_lsh different size |
Date: | Sat, 05 Feb 2011 11:32:49 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
Oops, what happens here? $ jk_check -c /etc/jailkit/jk_check.ini /home/sftproot /homeERROR: /home/sftproot/usr/sbin/jk_lsh and /usr/sbin/jk_lsh have a different size!
address@hidden sbin]# ls -Al /home/sftproot/usr/sbin/jk_lsh /usr/sbin/jk_lsh
-rwxr-xr-x. 1 root root 21617 4. Feb 22:38 /home/sftproot/usr/sbin/jk_lsh -rwxr-xr-x. 1 root root 25881 4. Feb 22:38 /usr/sbin/jk_lsh OK fixing. $ jk_update -j /home/sftproot ERROR: while scannign dir /home/sftproot/bin/: No such file or directory removing outdated file /home/sftproot/usr/sbin/jk_lsh ERROR: while scannign dir /home/sftproot/opt/: No such file or directory Copying /usr/sbin/jk_lsh to /home/sftproot/usr/sbin/jk_lsh OK wokring. $ jk_check -c /etc/jailkit/jk_check.ini /home/sftproot /home But - how could jk_lsh being changed? Best regards, Thomas. Am 05.02.2011 11:12, schrieb tiri:
Hi Olivier, so I changed PREFIX to EXEPREFIX in line 214. But I get following error: $ 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 215, in testrealpasswd if (rpw[6].trim() != chrootsh): AttributeError: 'str' object has no attribute 'trim' My jk_check.ini looks like: #/etc/jailkit/jk_check.ini [/home/sftproot] # jk_check does not run any tests in this directory (useful for proc filesystem) # be careful!! there is I repeat NO SINGLE TEST in this directory #ignorepatheverywhere = # jk_check compares files if they are equal to their counterparts in the real system, # using md5sum(). In the specified directories it will not test if files are equal # it will still test for world writable directories and setuid files ignorepathoncompare = /home/sftproot/home, /home/sftproot/etc # jk_check tests directory permissions, if you deliberately made some directories writable # for group or others, or you don't care, specify them here ignorewritableforgroup = /home/sftproot/home ignorewritableforothers = /home/sftproot/home/tmp # jk_check tests for setuid root and setgid root files # if you deliberately have such files specify them here #ignoresetuidexecuteforuser = /home/testchroot/usr/bin/smbmnt, /home/testchroot/usr/bin/smbumount #ignoresetuidexecuteforgroup = /home/testchroot/usr/bin/smbmnt, /home/testchroot/usr/bin/smbumount #ignoresetuidexecuteforothers = Best regards for your help. Thomas. Btw- how can I get cvs version for fix? Am 05.02.2011 09:21, schrieb Olivier Sessink: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'
[Prev in Thread] | Current Thread | [Next in Thread] |