|
From: | Olivier Sessink |
Subject: | Re: [Jailkit-users] scp problem with jailkit |
Date: | Wed, 9 Mar 2016 17:22:11 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
On 07-03-16 15:10, Johan Söderberg
wrote:
you see the difference in the logging. jk_chrootsh logging is identical: jk_chrootsh[16864]: now entering jail /opt/jails/jail1 for user tstusr1 (7000) with arguments -c scp -v -f testdir/* jk_chrootsh[17241]: now entering jail /opt/jails/jail1 for user tstusr2 (7001) with arguments -c scp -v -f testdir/* the next line is also identical: jk_lsh[16864]: jk_lsh version 2.17, started jk_lsh[17241]: jk_lsh version 2.17, started but then the next line is different: jk_lsh[16864]: executing command '/usr/bin/scp -v -f testdir/testfile1.txt testdir/testfile2.txt testdir/testfile3.txt' for user tstusr1 (7000) jk_lsh[17241]: executing command '/usr/bin/scp -v -f testdir/*' for user tstusr2 (7001) for tstusr1 the testdir/* is expanded to 3 files. But for tstusr2 it is not expanded at all. I see two causes: - a very obscure bug in jailkit that is triggered in a way that this only happens for this second user - the directory cannot be expanded, for example something is wrong with the permissions, or a typo in the directory name (the error message "No such file or directory" might be the correct error!!!) can you check and double check the permissions and name of the home directory of user tstusr2 and the subdirectory testdir? Olivier Olivier |
[Prev in Thread] | Current Thread | [Next in Thread] |