Skip to content

Instantly share code, notes, and snippets.

@psyrendust
Last active October 18, 2020 13:22
Show Gist options
  • Save psyrendust/8466620 to your computer and use it in GitHub Desktop.
Save psyrendust/8466620 to your computer and use it in GitHub Desktop.
LaunchDaemons for fixing Samba for OS X Mavericks.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.samba.nmbd</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/Cellar/samba/3.6.20/sbin/nmbd</string>
<string>-F</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>netbios</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.samba.smbd</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/Cellar/samba/3.6.20/sbin/smbd</string>
<string>-F</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceDescription</key>
<string>samba</string>
</dict>
</plist>
[global]
server string = Samba 3.6.20
smb passwd file = /usr/local/Cellar/samba/3.6.20/private/smbpasswd
private dir = /usr/local/Cellar/samba/3.6.20/private
passdb backend = tdbsam
client NTLMv2 auth = Yes
log level = 2
debug timestamp = No
debug hires timestamp = Yes
max open files = 16384
ldap ssl = start tls
lock directory = /usr/local/Cellar/samba/3.6.20/var/locks
pid directory = /usr/local/Cellar/samba/3.6.20/var/locks
usershare path = /usr/local/Cellar/samba/3.6.20/var/locks/usershares
idmap cache time = 604800
wide links = No
[c]
comment = c
path = /cygdrive/c
guest ok = No
wide links = No
valid users = uspayrolladmin
writeable = Yes
force create mode = 0755
force directory mode = 0755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment