To set up an svn repository (running on arch linux) I would like to use my NAS to store the repository. I can only mount it with CIFS (smb). At first there was an issue where the httpd user could not write to the file system which I solved by adding the options rm,file_mode=0777,dir_mode=777. The next error message that appeared when trying to commit something to the repository was Can't set permission on ... which comes from the fact that there are not permissions that can be set because it is not a unix file system. Now I am thinking whether it would be possible to mount the share such that it is owned by httpd already with the permissions already set correctly.So my question is now what file_mode and dir_mode must I chose for svn to accept it? Is it possible at all? And how would I mount a CIFS share with as a specific user. All information I could find on this topic so far did also contain the umask option which my OS does not want to accept because it has been replaced with file_mode and dir_mode if I understand correctly.The fall-back option would of course be to not use the NAS but a normal disk and sync to the NAS with a job.What further options do you need? I am using the latest (and updated) ARM version of Arch Linux and installed the apache svn as described here.
Use CIFS share mounted in fstab for apache svn
arch linux;fstab;subversion;cifs
The solution in my case was to mount the disk with following fstab option//server/share /mnt cifs username=USER,password=PSWD,rw,file_mode=0755,dir_mode=0755,uid=http 0 0The important thing seems to be the uid=http option.