From 7f35574c319246d19c7a6e723e169e721ed23b6b Mon Sep 17 00:00:00 2001 From: demosthenesk Date: Tue, 1 Nov 2016 23:39:19 +0200 Subject: [PATCH] Delete test.py --- test.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index 452e974..0000000 --- a/test.py +++ /dev/null @@ -1,19 +0,0 @@ -from pyftpdlib.handlers import FTPHandler -from pyftpdlib.servers import FTPServer -from pyftpdlib.authorizers import UnixAuthorizer -from pyftpdlib.filesystems import UnixFilesystem - -def main(): - authorizer = UnixAuthorizer(rejected_users=["root"], require_valid_shell=True) - handler = FTPHandler - handler.authorizer = authorizer - handler.abstracted_fs = UnixFilesystem - server = FTPServer(('', 21), handler) - server.serve_forever() - - server.close_all() - - server.serve_forever() - -if __name__ == "__main__": - main() \ No newline at end of file