Remote share rights?

I’ve asked about it before but got no answer - How do I create a remote share on my local network so the rights will be correct in nextcloud :)?

I’m not care and it’s a nfs, sftp, sftp, samba just the rights are right :)?