This has been bugging me for a while, and I never seem to be able to find the source of the problem. So I thought I would post here to get ideas from those of you experienced with Samba shares hosted on CentOS and making them accessible to Macintosh desktop systems.
In our LAN, we have workstations which are Linux, Windows and Mac. I don’t recall when this problem first started with the Mac, but it seems to be over a year ago. And the behavior of the problem is inconsistent and not always reproducible.
CentOS Linux release 7.5.1804 (Core)
Samba version 4.7.1.
Macintosh Mac OS 10.13.6
Each workstation uses Samba user login smbuser.
This is the problem, and only on the Mac. You can create a directory on the Samba share, move them around between directories, rename them, delete them, without a problem most of the time. But then for some reason, and this is why I’m posting about it, I need some trouble-shooting tips here, a Mac user tries to move the folder from one directory to another on the Samba share and will be prompted to enter in a username and password. If the user enters in the smbuser and password, it doesn’t accept it. If even tried entering in user name root and the password, and while it does accept that, you it doesn’t let you move the folder.
I have looked into the permissions and the permissions are 0775. For trouble-shooting while it wouldn’t let me drag a folder and put it in another folder, I did a duplicate of the folder creating a “folder name copy” and I was able to drag elsewhere and rename it.
I have logged into the shell on the CentOS file server and doing a ls -ls, I could see the permissions and owner group and group are OK. I use the ‘stat’ command to confirm this, and it is an exact match. But for some reason, either Samba/CentOS or the Mac OS is not allowing some of these file/folder changes to the Samba share to take place.
I have looked in SMB logs and I don’t see anything there. Is there some place else to look so when it gets prompted for permissions I can gather more debugging information? But from where can this be done on the Mac or on Samba/CentOS?
This is only happening on the Mac, the Linux and Windows workstations don’t have this issue.
Here is a generic version of the smb.conf being used on CentOS for this LAN:
I’m open to suggestions to how to fix this problem. Willing to try things out too, of course. Thanks in advance!