Hello all,
I’m trying to add a local folder which is a share to NextCloud.
I’m facing different problems.
Let me describe how I did first:
- The SMB is a windows share //wserver/gd
- I’ve added the following line to fstab (33 = www-data):
//wserver/gd /media/gd cifs user,uid=33,gid=33,rw,iocharset=utf8,suid,credentials=/root/.smbcredentials,file_mode=0770,dir_mode=0770 0 0
- Changed /media/gd owner to www-data and I did a
chmod u+w -R /media/gd
- After a
mount -a
, from root, I can reach any folder inside /media/gd and add/modify any files from terminal - From Nextcloud, I can add the external storage as local dir
- From Nextcloud, I can browser the folders with no problems BUT I have the popup “you don’t have the rights to write it”. In some folders, I can add files, some others I can’t.
- I’ve checked the permissions of a working folder and a non working folder: no difference
I’m a bit lost. The problem might be related to my local folder configuration but I don’t understand what.
Anyone has a successfully created such an external storage ?
Thank you!
lamaZZi