security = user
passdb backend = smbpasswd
smbpasswd file = /etc/samba/smbpasswd
pam password change = yes
#idmap uid= 167777216-33554431
#idmap gid= 167777216-33554431
#template shell = /bin/false
#winbind use default domain = no
文件末尾追加
[public]
comment = samba server
path = /home/%m
public = no
writeable = yes