Closed NightMachinery closed 3 years ago
Another client does see the links, but can't enter them:
[I 2021-03-05 13:02:29] 192.168.1.12:51542-[anonymous] USER 'anonymous' logged in.
[D 2021-03-05 13:02:29] 192.168.1.12:51542-[anonymous] <- PWD
[D 2021-03-05 13:02:29] 192.168.1.12:51542-[anonymous] -> 257 "/" is the current directory.
[D 2021-03-05 13:02:29] 192.168.1.12:51542-[anonymous] <- CWD dl
[D 2021-03-05 13:02:29] 192.168.1.12:51542-[anonymous] -> 550 "/" points to a path which is outside the user's root directory.
550 "/" points to a path which is outside the user's root directory.
@giampaolo commented on Mar 5, 2021, 2:14 PM GMT+3:30:
550 "/" points to a path which is outside the user's root directory.
See:
Well, is there an option to disable this check, without forking the code? (Monkey patching perhaps?)
import pyftpdlib.filesystems
import pyftpdlib.__main__
pyftpdlib.filesystems.AbstractedFS.validpath = lambda self, path: True
pyftpdlib.__main__.main()
Save as foo.py
, replace python -m pyftpdlib
with python foo.py
:
python foo.py -i '0.0.0.0' -p 8119 -d ~/Base/shared --debug
I start the server by
I can connect to this server, but I do not see my symbolic links there.