找了好多相关samba的配置,不是这里不行,就是那里不行。现在终于配置成功了。在这里记录一下,以便大家一起交流学习。
1.安装smaba
root@bozone:~# apt-get install smaba
2.修改配置文件
cd /etc/samba
vi smb.conf,增加以下内容:
#======================= Share Definitions =======================
[share]
comment = Shared Folder require password
path = /home/share
public = yes
writable = yes
valid users = share
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
browseable = yes
3.重启服务
root@bozone:~# service samba restart
4.修改文件权限,增加用户名密码:
root@bozone:~# useradd share
root@bozone:~# smbpasswd -a share
New SMB password:
Retype new SMB password:
Added user share.
root@bozone:~# chmod 777 /home/share
5.在window下输入:\\192.168.10.61回车