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
Same problem here, any solution?
wwe
October 27, 2022, 7:18am
4
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:
@gas85 ,
With regards to the rights, i saw this website:
They say:
chown -R www-data:www-data /mnt/ncdata/
So you can set the premisson like “grouchysysadmin” written.
chmod 0750 /mnt/ncdata/ -> ( 7|5|0 mean => user: rwx | group: rx | other: - )
w = write / r=read / x=execute / - = no premissions
In your case: chmod 0750 /mnt/ncdata/
maybe you have to set the same premission to every subdirectory.
find /mnt/ncdata/ -type d -print0 | xargs -0 chmod 0750
And every file in the data folde…
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
system
Closed
September 23, 2024, 4:05pm
7
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.