Can't create data directory in a smb/cifs server directory

i’m running nextcloud in docker, with /data mounted in a cifs server directory but when i try to create the admin account:

i get ‘‘Cannot create or write into the data directory /data’’, when i give ls -l:

Permissions are for the root user and when i try:
chown abc:users /data
Nothing changes

Yeah, don’t do that…

Same problem here, any solution?

data directory must be owned by the webserver user in docker usually www-data. If you can’t change permission you need to troubleshoot it on the Linux level - nothing to do with Nextcloud itself.

see this post for default permission:

I do not know if is possible to to use cifs for primary storage.
If yes i think you must change e.g. /etc/fstab for cifs mount for user e.g. www-data.

1 Like