OSError: [Errno 13] Permission denied

697 views
Skip to first unread message

Johnny Bravo

unread,
Jan 19, 2015, 9:48:27 AM1/19/15
to pyft...@googlegroups.com
Hello, this library is just what I was looking for, but I can't get it to host a ftp server as an unprivileged user. I followed the example in "basic_ftpd.py" file but it won't run, it outputs:

./ftpserver.py

Traceback (most recent call last):

 
File "./ftpserver.py", line 12, in <module>

   
from pyftpdlib.servers import FTPServer

 
File "/usr/lib/python2.7/site-packages/pyftpdlib/servers.py", line 529, in <module>

   
class MultiprocessFTPServer(_SpawnerBase):

 
File "/usr/lib/python2.7/site-packages/pyftpdlib/servers.py", line 533, in MultiprocessFTPServer

    _lock
= multiprocessing.Lock()

 
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 176, in Lock

   
return Lock()

 
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__

   
SemLock.__init__(self, SEMAPHORE, 1, 1)

 
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__

    sl
= self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied

I have tried using the older approach with pyftpdlib.ftpserver too, with no luck. 

Python 2.7
pyftpdlib 1.4.0
Crux Linux 3.1
Linux 3.18.1

Johnny Bravo

unread,
Jan 19, 2015, 2:36:47 PM1/19/15
to pyft...@googlegroups.com
Found the problem:


For reference.

Thanks for a great piece of software, best wishes
Reply all
Reply to author
Forward
0 new messages