pysmb
pysmb copied to clipboard
Permission denied writing files
Hi Mike,
It appears that when writing files, you use WRITE_DAC - is there any reason to do so? In our environment, most users don't have permission to write to the ACLs, thus writes tend to existing files that the user didn't create fail.
I am still looking into the details of this - and I'm not 100% convinced it's "just" this that's responsible, but will keep investigating.
Chris
@cjsoftuk : I will run some tests over the weekend to determine if WRITE_DAC is needed. If not, I will remove it in the next pysmb release.
@cjsoftuk : I have committed a revision (69e3202d426a1ade6208f8461f00cac88031d65a) which removes the WRITE_DAC flag during store files and make directory operations. Can you help test if it resolves the issue on your end. Thanks.
Thanks Mike.
I'll get that installed and tested on our environment.
Chris
On 13 July 2015 08:20:20 BST, Michael Teo [email protected] wrote:
@cjsoftuk : I have committed a revision (69e3202d426a1ade6208f8461f00cac88031d65a) which removes the WRITE_DAC flag during store files and make directory operations.
Reply to this email directly or view it on GitHub: https://github.com/miketeo/pysmb/issues/36#issuecomment-120835746
Sent from my Android phone with K-9 Mail. Please excuse my brevity.