[Top][All Lists]

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

Re: [Jailkit-users] jk_check: 1fix and some error messages

From: Olivier Sessink
Subject: Re: [Jailkit-users] jk_check: 1fix and some error messages
Date: Wed, 02 Mar 2011 10:50:45 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: Gecko/20100317 Thunderbird/3.0.4

On 2/27/11 20:34 , cgzones wrote:
HI list,
thanks for your fast response, Olivier.
I checked the jk_check file and i found following lines (214-216):

"chrootsh = os.path.join(EXEPREFIX, '/sbin/jk_chrootsh')
if (rpw[6].strip() != chrootsh):
print 'ERROR: user '+rpw[0]+' has a /./ but does not have the
'+chrootsh+' shell'"

(EXEPREFIX is defined at the top with "EXEPREFIX='/usr'", and i compared
my file with the jk_check file in the cvs repository)
I think the operation os.path.join do not run as it should. I think it
should combine the two strings together, but in the print line the
variable is still "/sbin/jk_chrootsh" and not
EXEPREFIX/sbin/jk_chrootsh. Can it be that line 214 has to look like
"chrootsh = EXEPREFIX+'sbin/jk_chrootsh'

os.path.join is supposed to do that... funny...


reply via email to

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