在Ubuntu上安装Samba服务器:
sudo apt-get install samba samba-common system-config-samba python-glade2 gksu
vim /etc/samba/smb.conf
将文件中的内容做如下相应修改:
security-user改为security=share
在文件结尾添加如下行:
[share]
path=/home/book/share
pubilc = yes
writable = yes
注:
[share]为在windows下显示的文件夹名
path要映射的目录
Question: 'net usershare' returned error 255: net usershare add: cannot share path /home/geo/Work as we are restricted to only sharing directories we own.
Ans: 在配置文件中找到usershare allow guests = yes,在后面一行添加 usershare owner only = false
保存退出,启动Samba服务:
/etc/init.d/smbd start
设置完成!
文件夹填写:\192.168.12.131\share,这样就能完成访问。