[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-dev] jk_jailuser bugs
From: |
Olivier Sessink |
Subject: |
Re: [Jailkit-dev] jk_jailuser bugs |
Date: |
Thu, 10 Nov 2005 22:34:32 +0100 |
User-agent: |
Debian Thunderbird 1.0.7 (X11/20051010) |
Stephen Tallowitz wrote:
> Hello Olivier,
>
> sorry about posting my comments on jk_jailuser to the jailkit-users
> list, it really should have gone on this list
no worries, your testing is welcome on any list ;-)
> I've figured out the error. My /home is on a different filesystem
> than /srv, thus just creating a new hard link within the same
> filesystem will not work, the data really has to be copied to the
> other filesystem (creating a new hard link is what os.rename() does
> in python). Follow this thread in the mailing list for possible
> solutions:
> http://mail.python.org/pipermail/python-list/2005-February/266552.html
ahh shutil.move is probably a good solution
> When jk_jailuser isn't able to copy (or move) the home directory,
> there are some interesting follow-up effects:
"interesting follow-up effects" is a nice term for bug ;-)
> There are probably a few more situations, where moving (or copying)
> the home directory isn't successful. One case I can think of is that
> the destination filesystem gets full in the middle of transfering the
> home directory, what should jk_jailuser do then?
that is a good point, probably:
1) not delete the source
2) warn the user that moving failed
I hope shutil.move() does that
thanks!
Olivier