`
meiping
  • 浏览: 47716 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Suse10环境Samba服务器配置

阅读更多

samba配置文件路径/etc/samba/smb.conf
1.添加用户
smbpasswd -a root
依照提示输入密码,此密码不必与系统密码相同,但是该用户却需要实现在系统中存在
2.修改配置文件
[global]
        netbios name = SMBSERVER
        server string = Linux Samba Server
        security = share
        guest ok = yes
        guest account = root
        display charset = cp936
        dos charset = cp936
        unix charset = cp936
[data]
        comment = Public Data
        path = /home/robin/samba
        writable = yes
        guest ok = Yes
 
其中data就是配置的共享目录,其中cp936的几个选项是为了避免windows中的中文名在linux下出现乱码,在此linux使用gbk作为locale,如果使用utf-8则需要将相应编码设置为utf-8
3.启动samba
/etc/rc.d/smb start
/etc/rc.d/smb stop
/etc/rc.d/smb restart

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics