uMTP-Responder icon indicating copy to clipboard operation
uMTP-Responder copied to clipboard

Add file permissions option

Open fifteenhex opened this issue 4 years ago • 3 comments

At the moment files are created with r/w for the owner only. In my use-case I need the files to be readable by other users. Right now I've hacked the code but I think it might be useful to have the file permissions settable from the config file.

fifteenhex avatar Apr 13 '20 08:04 fifteenhex

At the moment files are created with r/w for the owner only. In my use-case I need the files to be readable by other users. Right now I've hacked the code but I think it might be useful to have the file permissions settable from the config file.

Yes we might need this too. I will implement this, probably in the "storage" options.

jfdelnero avatar Apr 14 '20 12:04 jfdelnero

Thanks, I have a similar use case, but we also need owner changes and per-directory settings. i.e., server is running as root (changing to other user will not work). we have 3 directories exported: data, logs and updates. In data directory, copied files must be owned by user "nobody" with permissions 0600, updates may be changed to another user with permissions 0660. We probably work on that in the next weeks and submit a PR eventually.

Thanks.

studiofuga avatar Jun 24 '20 11:06 studiofuga

See PR #38

studiofuga avatar Jul 07 '20 16:07 studiofuga