Can't get permissions right when data dir is mounted

9.1.x
help

#1

I am mounting the ownCloud data directory with this (mounts a WD EX2):

//10.0.0.3/ownCloud /owncloud cifs credentials=/home/server/auth/.smbcredowncloud,rw,uid=33,gid=33,iocharset=utf8,file_mode=0770,dir_mode=0770,sec=ntlm 0 0

These are the directory perms:

drwxrwx--- 2 www-data www-data 0 Oct 3 03:48 owncloud/

On the installation it can't continue due to lack of permissions and if I mount the dir after installation then the files that are not www-data are removed and the .ocdata not found message appears.

Is that fstab line correct for ownCloud?


#2

Hi,

whe have a FAQ thread available here providing most background info on this topic:

If the fstab line is correct is something you need to find out based on that info as this can differ on every environment


#3

Got it.

Fixed with:

//10.0.0.3/ownCloud /home/server/mounts/owncloud cifs credentials=/home/home/server/auth/.smbcredowncloud,permissions,users,uid=33,gid=33,iocharset=utf8,umask=000,sec=ntlm 0 0

And both the data and the previous directory need to be www-data:www-data.


#4

Nice, thanks for posting that. I have added that line as an example to the mentioned FAQ.


#5

Actually that like was not working. I thought it was mounting but it was actually returning errors.

This one is working, please update FAQ if you added the other line:

//10.0.0.3/ownCloud /home/server/mounts/owncloud cifs credentials=/home/server/auth/.smbcredowncloud,rw,uid=33,gid=33,dir_mode=0770,iocharset=utf8,sec=ntlm 0 0


#6

Thanks for the follow-up, have updated the FAQ accordingly.