[Top][All Lists]

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

Re: [Jailkit-users] scp problem with jailkit

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:

When users who belong to group grp2 run scp with a wild card they get the following error:
scp address@hidden:testdir/* .
address@hidden's password: 
scp: testdir/*: No such file or directory

However the directory exists and contains files:
scp address@hidden:testdir/testfile2.txt .
address@hidden's password: 
testfile2.txt                                                                          100%    0     0.0KB/s   00:00

The users who belong to group grp1 does not have the problem:
scp address@hidden:testdir/* .
address@hidden's password: 
testfile1.txt                                                                          100%    0     0.0KB/s   00:00    
testfile2.txt                                                                          100%    0     0.0KB/s   00:00    
testfile3.txt                                                                          100%    0     0.0KB/s   00:00

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?



reply via email to

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