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
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.
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