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