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:
2022-10-09_20-02

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

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.

2 Likes

Hi i have mounted it in fstab like this:
//192.168.1.220/nextcloudstorage /mnt/nextcloudstorage cifs uid=33,gid=33,dir_mode=0770,file_mode=0770,username=nextcloud,password=xxxxx,iocharset=utf8 0 0

and it is working

1 Like