Chinaunix首页 | 论坛 | 博客
  • 博客访问: 852329
  • 博文数量: 189
  • 博客积分: 4310
  • 博客等级: 上校
  • 技术积分: 1925
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-27 08:56
文章分类

全部博文(189)

文章存档

2015年(1)

2013年(2)

2012年(1)

2011年(39)

2010年(98)

2009年(48)

分类: LINUX

2010-06-14 15:28:31

一:先改写Ubuntu中文件夹的读写权限:chmod 777 xxx
二:备份/etc/samba/smb.conf文件。
三:修改/etc/samba/smb.conf文件,把#security = user 改成security = user 和 username map = /etc/samba/smbusers #这个是用户映射文件
 
在workgroup 下加上
   display charset = UTF-8
   unix charset = UTF-8
   dos charset = cp936
这个是为了避免乱码
[GoldenPlatform]   #共享文件夹
comment = Shared Folder with username and password
path = /home/hyy/GoldenPlatform #共享目录
public = yes
writable = yes  #可写
guest ok = yes        #匿名可访问
create mask = 0700
directory mask = 0700
#force user = nobody
#force group = nogroup
#available = yes
browseable = yes
在smb.conf后加上这个,
 
重新启动samba /etc/init.d/samba restart
 
阅读(1174) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~