前几天,在单位的CentOS 4上,开启samba服务很简单。但是,在家里的Ubuntu开启服务后,在windows下却不能访问,今天,在网上查了些资料,终于把这个问题搞定了
首先,创建一个目录
mkdir /home/leafroot/share
chmod 777 /home/leafroot/share
编辑
/etc/samba/smb.conf
去掉 security = user前的;
加上 username map = /etc/samba/smbuser
在文件的最后,加上
[Share]
comment = comment
path = /home/leafroot/share
public = yes
writable = yes
valid users = wanghn
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes