I'm running a virtual server (ubuntu server) inside virtualbox and have a webserver running on the ubuntu server.
I want only to allow the ubuntu server to access the share and also only the specific user through the samba shared folder. I've got it all working but apache 2 on the virtual machine is running into trouble not being able to write to the shared folder.
this is how I'm mounting the share in my virtual machine is my /etc/fstab
//%openmediavaultip%/%username% /media/%username% cifs credentials=/home/%username%/.smbcredentials,gid=33,file_mode=0770,dir_mode=0770,iocharset=utf8,sec=ntlm 0 0
gid 33 is www-data
I'm probably going about this in the wrong way and I would like some suggestions on how to better approach this. I've tried putting the file and directory mode to 777 but this also not seems to be working (which I in any case do not want)
I've tried doing this through the virtualbox shared folder options but was running into issue with that as well. Any suggestions are appreciated.