I am running a CentOS 7 server running Samba 4.9.1
I have a fileshare on a Win 2008 R2 (soon to be upgraded) server that I want to right to from the CentOS sever.
I have installed 'samba-clent' and 'cifs-utils'. I have added a line to [/etc/fstab] to create a mount point to a folder in the root called 'output' (i.e. '/output') and passed credentials of a special windows user from a text file (username, password and domain).
On the Windows side I have granted the share folder 'Full control' to the windows user AND shared the folder with them.
This all works well and the two servers are now linked so that if I create a text file from CentOS in the folder '/output' it appears in the Windows share. I can list the share's contents. create folders, delete files and delete folders.
HOWEVER I when I run a shell script that runs a docker program (third-party that I can't upload) it returns 'Permission denied' when it tries to generate a database backup in that location.
The exact same setup worked under Ubuntu 16.04 so I am confused as to what is missing here.
I have even run '# semanage fcontext -a -t samba_share_t '/output(/.*)?' and then '# restorcon -v /output' to stop SELinux from blocking the Samba communication.
- What could I be missing ?
- Do I need to create a Samba user just to access this share ? I didn't under Ubuntu 16.04
- How can I further manually test the share to see if I am missing permissions