giampaolo / pyftpdlib

Extremely fast and scalable Python FTP server library
MIT License
1.65k stars 265 forks source link

windows add user #595

Closed isdito closed 1 day ago

isdito commented 1 year ago

hello,

I will like ad a user in windows server

from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlib.authorizers import WindowsAuthorizer
import sys
#authorizer = WindowsAuthorizer()
#authorizer.add_user("isra", "12345", "f:/", perm="elradfmwMT")
#authorizer.add_anonymous("/home/nobody")

authorizer = WindowsAuthorizer( "elradfmwM")
authorizer.add_user("isra", "12345", "f:/", perm="elradfmwMT")
handler = FTPHandler
handler.authorizer = authorizer

server = FTPServer(("127.0.0.1", 2121), handler)
server.serve_forever()

it is posible?

reggards

giampaolo commented 1 day ago

Not sure what you were asking for exactly but: https://pyftpdlib.readthedocs.io/en/latest/tutorial.html#windows-ftp-server Closing.