Skip to content

Instantly share code, notes, and snippets.

@xymox12
Last active August 29, 2015 14:16
Show Gist options
  • Save xymox12/63d19a1710a7b1d23053 to your computer and use it in GitHub Desktop.
Save xymox12/63d19a1710a7b1d23053 to your computer and use it in GitHub Desktop.
VB Ubuntu Linux
# SAMBA
Install SAMBA
## Memory leak warning
* "no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory"
If you get the memory leak error warning:
'You can also fix this issue while keeping libpam-smbpass installed by running "pam-auth-update" and remove "SMB password synchronization". Got that solution from Thomas (reusch) on https://bugs.launchpad.net/ubuntu/+s...a/+bug/1257186 '
## Windows asks for Credentials
If using a domain rather than a workgroup, windows seems to insist on asking for credentials, so use:
workgroup\guest and any password
[global]
workgroup = ##
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
username map = /etc/samba/smbusers
security = share
[Debian server]
path = /
public yes
force user = root
comment = All folders
directory mask = 0755
create mask = 0644
writeable = yes
; available = yes
browseable = yes
guest ok = yes
; printable = no
locking = no
strict locking = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment