[Top][All Lists]

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

Re: [Jailkit-users] issue with jk_jailuser on Mandriva 2006

From: Olivier Sessink
Subject: Re: [Jailkit-users] issue with jk_jailuser on Mandriva 2006
Date: Wed, 25 Oct 2006 08:03:51 +0200
User-agent: Thunderbird (X11/20060812)

Steve Wegner wrote:
> Trying to get Jail kit sftp scp only to work. 
> My user is test, my jail is /var/sftproot
> When I run jk_jailuser I get:
> # jk_jailuser -m -j /var/sftproot test
> Traceback (most recent call last):
>   File "/usr/sbin/jk_jailuser", line 297, in ?
>     main()
>   File "/usr/sbin/jk_jailuser", line 288, in main
>     jailuser(jail, username, movehome, config)
>   File "/usr/sbin/jk_jailuser", line 177, in jailuser
>     shutil.copy(oldhome, newhome)
>   File "/usr/lib/python2.4/shutil.py", line 81, in copy
>     copyfile(src, dst)
>   File "/usr/lib/python2.4/shutil.py", line 47, in copyfile
>     fsrc = open(src, 'rb')
> IOError: [Errno 21] Is a directory

this is the last step, the users home directory is moved to the jail.
I'll have to see why this fails.

> When I do it this way I try to sftp and my connection appears succsesful
> but closes connection right away. Log file says: 
> Oct 24 22:32:40 hostname sshd[3546]: Accepted password for test from
> port 8281 ssh2
> Oct 24 22:32:40 hostname sshd[3548]: subsystem request for sftp
> Oct 24 22:32:40 hostname jk_chrootsh[3549]: now entering jail
> /var/sftproot for user test (512)
> Oct 24 22:32:40 hostname jk_lsh[3549]: jk_lsh version 2.1, started
> Oct 24 22:32:40 hostname jk_lsh[3549]: executing command
> '/usr/lib/ssh/sftp-server' for user test (512)
> That's as far as I can get.

this is the point where jailkit is finished and everything should work
(because the sftp server is started). I've never seen it failing in this
stage... I don't have a solution, but I have some ideas for debugging:

1) use `strace` as described in the howto to see why sftp-server fails

2) change the shell in the real /etc/passwd to bash and see if you can
use sftp (does sftp work at all on your system for this user)


reply via email to

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