-
All replies
-
Helpful answers
-
by John Lockwood,May 23, 2016 9:23 AM in response to amperfrombeinasco
John Lockwood
May 23, 2016 9:23 AM
in response to amperfrombeinasco
Level 6 (9,309 points)
Servers EnterpriseThe smb.con file dates back to when Apple still used the standard open-source SAMBA software. When Apple released Mac OS X Lion they switched to using their own smbx software instead of SAMBA. This was due to SAMBA switching to GNU 3.0 Licensing which Apple felt unable to comply with.
So /etc/smb.conf no longer exists at least on Macs.
The nearest equivalent for Apple's own proprietary smbx software would be either /etc/nsmb.conf or ~/Library/Preferences/nsmb.conf
The first is the global settings file for the entire computer, the second is stored in each users home directory.
Note: The contents of this file are totally different to what was in /etc/smb.conf
I recommend you run Terminal.app and type man nsmb.conf for information about this file.
While the above Unix man page shows very few options and none of the ones you list, it is possible some options are not documented.
-
May 23, 2016 11:49 PM in response to John Lockwoodby amperfrombeinasco,Dear John,
I don't find nsmb.conf!
It is not in /etc or in /Library/Preferences.
The Mac Pro has OS X 10.11.5 (15F34) and OS X Server 5.1.5.
File sharing is enabled for SMB and AFP.
Permissions of shared folders are "everyone can read and write".
I want free access from Windows, also for guest and without authentication.
For AFP is ok, but for Windows always ask user and password on pc client...
How can I modify this setting?
Many thanks.
-
by John Lockwood,May 24, 2016 1:54 AM in response to amperfrombeinasco
John Lockwood
May 24, 2016 1:54 AM
in response to amperfrombeinasco
Level 6 (9,309 points)
Servers EnterpriseI forgot to mention the file(s) do not exist as standard, you have to create them and enter whatever settings you want.
I personally get the impression that most if not all the settings you can do in nsmb.conf are really only relating to the Mac itself connecting to another different SMB server, for example this file and smb_neg are used to tell the Mac to connect to another SMB server using SMB1 or 2 or 3 instead of auto-negotiate.
With regards to enabling Guest access, the only option I see applies to both AFP and SMB, you do this as follows.
- Launch Server.app
- Click on File Sharing on the left
- Make sure Settings tab is selected on the right
- You should see all the existing Shares listed
- Select the Share you want to modify
- Then click on the Pencil icon at the bottom
- You now get a new dialog box appearing and in this is an option to turn on Guest users access
- Click on OK when finished
- You may also need to click on the Edit Permission button on the same Settings screen
- In this screen you can chose which users can access which the File Sharing service, if you restrict access to the File Sharing service then this would I feel implicitly disable Guest access