[issue17967] urllib2.open failed to access a url when a perent directory of the url is permission denied

zhaoqifa report at bugs.python.org
Thu May 30 08:25:42 CEST 2013


zhaoqifa added the comment:

Sorry for replying so late.
"1) Will the above change have any security implications."
---It does not seem to me 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."
---I configured proftpd like this:
<Limit WRITE DIRS>
    DenyAll
</Limit>
<Directory /home/*>
        <Limit DIRS LIST NLIST>
        AllowAll
        </Limit>
</Directory>
And get message as bellow when login anonymous:
lftp perf00:~> cd /home
cd: Access failed: 550 /home: No such file or directory
lftp perf00:~> cd /home/work
cd ok, cwd=/home/work
lftp perf00:/home/work> cd /home/work/test
cd ok, cwd=/home/work/test
lftp perf00:/home/work/test> ls
drwxrwxr-x   8 work     work         4096 Jun 15  2011 pb

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17967>
_______________________________________


More information about the Python-bugs-list mailing list