一.Ubuntu 11.04下Samba的安装:
$ sudo apt-get insall samba
$ sudo apt-get install smbfs
二.创建共享目录:
$ mkdir /home/work/samba_share
$ sodu chmod 777 /home/work/samba_share #若不更改权限,windows下不能写入(适用于只读共享)!!!
三.修改Samba配置相关文件:
$ cp /etc/samba/smb.conf /etc/samba/smb.conf.old # 备份samba的配置相关文件
$ sudo gedit /etc/samba/smb.conf
找到 security = user 将它改成 security = share
把光标移动配置相关文件的最后一行,在接下来加入以下配行
[home]
comment = homepath
path = /home/work/samba_share
writable = yes
locking = no
public = yes
guest ok = yes
四.重启Samba服务
# sudo /etc/init.d/smbd restart
OK!