osx server smb.conf location

Anyone know where the smb.conf file is located? I would like to take a look at it's content.

MacBook Pro (Retina, 15-inch, Early 2013), OS X Mavericks (10.9.4)

Posted on Dec 13, 2015 8:37 AM

Reply
12 replies

Dec 13, 2015 2:57 PM in response to jhoogeboom

jhoogeboom wrote:


Anyone know where the smb.conf file is located? I would like to take a look at it's content.


smb.conf is the configuration file for Samba, and that was removed in OS X Server 10.7.


If you've installed Samba separately or are running OS X Server 10.6 or earlier...

From the command line, one or both of the following commands can be used to locate the specified file, or most any other file...

locate smb.conf

mdfind smb.conf


The locate command might not be activated on your system — if it's not, you'll get a diagnostic showing how to do that. The mdfind command uses Spotlight to query for its data, and that is usually is enabled.


The default location for the Samba smb.conf configuration file was in /etc on most systems, including on OS X Server 10.6 and earlier.

Dec 13, 2015 3:04 PM in response to MrHoffman

It seems I had the (I guess) erroneous belief that the OS X samba server was a direct port or implementation of the linux samba one including it's configuration file and syntax (like smb.conf). I have OS X server running it's file sharing over SMB in the local network but also remotely without problem, sadly remote ubuntu servers exposing their samba shares over the internet cannot be connected to from my OS X machine (bad practise I know, but recently smb supports encryption it seems). Ubuntu clients with smbclient can connect just fine, so I was trying perhaps to replicate OS X server's smb.conf settings in order to emulate a better support for connection.

Dec 13, 2015 4:09 PM in response to jhoogeboom

jhoogeboom wrote:


It seems I had the (I guess) erroneous belief that the OS X samba server was a direct port or implementation of the linux samba one...


The Samba project changed the associated software license at their 3.2 release, which reportedly led Apple to create and migrate to their own CIFS/SMB implementation. Samba 4.0 had substantial changes to authentication.


You'll probably need to have a look at the Ubuntu Samba server logs for clues around the failure, if you've not already done so.


Whether the OS X CIFS/SMB client supports encryption, I don't know.


And a possibly-interesting discussion from else-forum...

Dec 14, 2015 2:30 AM in response to MrHoffman

Thanks MrHoffman, I've tried to up the log level of the samba server logs:


[2015/12/14 11:06:52.043900, 2] ../source3/smbd/server.c:437(remove_child_pid)

Could not find child 1193 -- ignoring

[2015/12/14 11:07:52.108755, 2] ../source3/smbd/server.c:437(remove_child_pid)

Could not find child 1195 -- ignoring

[2015/12/14 11:08:52.173667, 2] ../source3/smbd/server.c:437(remove_child_pid)

Could not find child 1201 -- ignoring

[2015/12/14 11:09:52.238582, 2] ../source3/smbd/server.c:437(remove_child_pid)

Could not find child 1205 -- ignoring

[2015/12/14 11:10:52.303318, 2] ../source3/smbd/server.c:437(remove_child_pid)

Could not find child 1206 -- ignoring


but I only get this bug that has something todo with CUPS printers that's apparently still around. No connection attempt is even mentioned in the logs.


Also tried the possibly-interesting discussion, seems their issue was having public shares, but even that did not work for me.

Dec 14, 2015 5:52 AM in response to jhoogeboom

I installed OpenVPN on my ubuntu server and connected my mac to the server through VPN, I can access the shares just fine this way using the local address. So the issue seems more firewall-ish / port related. Any clue what this could be? Any tips/starters on how do I investigate this? tried turning off the firewall on my mac (which I think only blocks inbound traffic anyway), but also timeout.

Dec 14, 2015 7:22 AM in response to jhoogeboom

jhoogeboom wrote:


I installed OpenVPN on my ubuntu server and connected my mac to the server through VPN, I can access the shares just fine this way using the local address. So the issue seems more firewall-ish / port related. Any clue what this could be? Any tips/starters on how do I investigate this? tried turning off the firewall on my mac (which I think only blocks inbound traffic anyway), but also timeout.


Look at the firewall logs.


Debugging in recent years is all about finding and reading logs, and — where and when available and necessary — determining how to log yet more data to read.


I'd strongly encourage sticking with the VPN access here, in any case. I really don't like folks poking random packets at file servers. They will poke, too. This if for no other reason than random poking adds yet more data onto the file server logs. Data I end up sifting through, or that the log-sifting and anomoly-detection tools then have to be configured to ignore. If there's not some vulnerability discovered in the underlying services. The time to exploit tends to be pretty quick these days. Often faster than the problem can be identified and fixed, and faster than many of the folks can then get notified and deploy the patches, too.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

osx server smb.conf location

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.