Hello,
for migrating an existing network share and preserving the current workflow I want to configure a Samba share to also be used as an external storage in NextCloud. As I see, NextCloud requires the files to be r/w accessible by the www-data user. My first idea was to set share owner and group to www-data but UCS only allows LDAP user accounts for this purpose. So what’s the best way to achieve this goal then?
At the moment, I think about creating a dedicated UCS account for this share and then adding www-data to its group, permissions of the folders would be 770 and of the files 660. UCS allows the advanced settings of “Force user” and “Force group” where it doesn’t seem to be restricted to UCS accounts or groups. Additionally, UCS offers to “Create files/directories with the owner of the parent directory” which, I guess, wouldn’t need if I “Force user” to www-data. Is there anything else I need to consider? Inherit permissions from parent folder? Do I even need a dedicated UCS account or is there one I could re-purpose?
Or should I kick all this and just access this share via WebDAV?
Best regards,
Masin