giampaolo / pyftpdlib

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

Password changes for existing dummy user #536

Closed sourabhyadavgit closed 4 years ago

sourabhyadavgit commented 4 years ago

Hi, Is it possible to change password for the existing user on dummy authorizer?

giampaolo commented 4 years ago
import os
from pyftpdlib.authorizers import DummyAuthorizer

authorizer = DummyAuthorizer()
authorizer.add_user('user', '12345', os.getcwd(), perm='elradfmwMT')
authorizer.user_table['user']['pwd'] = 'newpassword'