Skip to content

Instantly share code, notes, and snippets.

@azhai
Created July 8, 2013 03:58
Show Gist options
  • Save azhai/5946151 to your computer and use it in GitHub Desktop.
Save azhai/5946151 to your computer and use it in GitHub Desktop.
简化的samba配置 /etc/samba/smb.conf
#添加用户ryan,Samba不依赖于系统用户
#gpasswd -a ryan
#生效
#/etc/init.d/smbd restart
[global]
workgroup = WORKGROUP
server string = Smaba %V
hosts allow = 192.168.0.
security = user
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
[ryan]
path = /home/ryan
browseable = yes
writable = yes
valid users = ryan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment