I have a folder as external source in my nextcloud.
This folder is also via Samba reachable.
I have sometimes the problem with the file permission.
What I want to have:
- only valid user, no connect without authentification
my sambs config:
comment = nextCloud Projekte
path = /media/Projekte
valid users = user1, root
force user = www-data
force group = www-data
browseable = yes
writeable = yes
admin users = www-data
public = yes
create mask = 0777
directory mask = 0777
But sometimes i need to set a file to owner root, to change ist via Windows share.
Which file permission is correct, for:
- nextcloud have full access
- valid Samba user have full access, when create or modify files