sudo apt-get install samba
sudo mkdir /home/[username]/share
sudo chmod 777 /home/[username]/share
sudo /etc/init.d/samba start
sudo gedit /etc/samba/smb.conf
找到; security = user,并修改为security = share
在[glabol]中,找到workgroup项,修改并添加:
workgroup = WORKGROUP
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
最后添加内容:
[share]
comment = Shared Folder with zlm8715
path = /home/zlm8715/share
public = yes
writable = yes
create mask = 0700
directory mask = 0700
force user = [username]
force group = [username]
available = yes
browseable = yes
最后重启服务:sudo /etc/init.d/samba restart
在windows下,运行中写入\\[ubuntu的ip],就能看到共享的目录
或者:
网上邻居->右键->映射网络驱动器->输入\\[ubuntu的ip]\share.
阅读(900) | 评论(0) | 转发(0) |