debian下samba配置

debian下samba配置  http://blog.chinaunix.net/uid-2282111-id-2113216.html

服务器端配置过程:
1. apt-get install samba
2. 修改/etc/samba/smb.conf,配置共享文件夹属性

root@debian:~/jz2440# vi /etc/samba/smb.conf
[global]
        workgroup = WORKGROUP
        netbios name = CentOS7
        server string = Samba Server
        security = user
        encrypt passwords = yes
        max connections = 0
        security = user
[jz2440]
        path = /root/jz2440
        writable = yes
        guest ok = yes
        write list = @root
        validusers = @root
        display charset = UTF-8
        unix charset = UTF-8
        dos charset = cp936                     

3. 添加用户并设置samba访问密码
  smbpasswd -a your_samba_user_name
4. 重启一下samba服务:
  /etc/init.d/smb restart

5. windows下映射网络盘,访问。

 

posted @ 2016-08-21 16:20  oucaijun  阅读(3126)  评论(0编辑  收藏  举报
下载TeamViewer完整版 下载TeamViewer