miketeo / pysmb

pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol (SMB1 and SMB2) which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.
Other
338 stars 95 forks source link

Feature request: Updating Security Descriptors #168

Open vinodc opened 3 years ago

vinodc commented 3 years ago

This is referring to the security descriptors documented here: https://pysmb.readthedocs.io/en/latest/api/smb_security_descriptors.html

We currently use getSecurity(), and it works quite well! Are there plans to allow the access control entries to be updated/added/deleted on files/folders as well, or is there any way to do that today?

miketeo commented 3 years ago

SMB2 specs support SMB2_SET_INFO request/response, but I have no confirmation whether you can perform the set operations on Windows 10 or Samba services.

vinodc commented 3 years ago

Thanks for the quick response, @miketeo! I'll take a look at that.

harthurd commented 3 years ago

Hello! Can you please tell me, how to send a request/response SMB2_SET_INFO using your library? Thanks.