make it executable and double click it, or create a launcher for it), it starts a little gui for you to configure your server. When it's started without any parameters (i.e. I'm sorry it's 3999 lines long, but it will do everything the original does. username=USERNAME and -password=PASSWORD: python ftpserver.py -port=2121 -username=ftpuser -password=3r2u389r2u333j You now have, in addition to all options I mentioned, the command line parameters Now, this script doesn't support username and password as part of it's stand-alone functionality (for security reasons I imagine). Read the license text, it's only a few lines, and know your rights. log into it at note that this software is released under the terms of the MIT License, which means you can do basically what ever you please with it.Type python ftpserver.py -help to get information about all the options. It will also use the directory FTP in the current working directory instead of your home. Will serve, without root privileges, on port 2121 and grant write access to anonymous users. This command: python -m pyftpdlib -directory=FTP -port=2121 -write This is meant more as a test of the module, but it does what it says on the tin. You now have an ftp server which you can log in to anonymously sharing your home directory. Run with python -m pyftpdlib, add -w if you want write access too.Install with pip pip install -user pyftpdlib.You can get an FTP server going as easy as one two three using pyftpdlib:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |