This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients foxkiller, orsenthil, terry.reedy
Date 2013-05-21.13:38:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369143507.3.0.445178027538.issue17967@psf.upfronthosting.co.za>
In-reply-to
Content
Hello zhaoqifa, 

Your suggestion for the solution looks good to me. Instead of cd-ing to each dir, you cd to target dir when ftp url is accessed.

Two things to consider.

1) Will the above change have any security implications. It does not seem to me. But I did not write that code originally that way either.

2) On Ubuntu, I am unable to setup a directory based (ACL'ed) anonymous ftp server. The option is either anonymous from ftp root (/) which will map to my operating system folder (/srv/ftp) or non-anonymous. I wonder how your server is configured to allow anonymous from a particular point onwards.
History
Date User Action Args
2013-05-21 13:38:27orsenthilsetrecipients: + orsenthil, terry.reedy, foxkiller
2013-05-21 13:38:27orsenthilsetmessageid: <1369143507.3.0.445178027538.issue17967@psf.upfronthosting.co.za>
2013-05-21 13:38:27orsenthillinkissue17967 messages
2013-05-21 13:38:26orsenthilcreate