配置smb.conf

配置samba

编辑/etc/samba/smb.conf,在246行 Share Definitions后面添加

[ root ]                                                   

      Comment = Root Directories   //注释说明

      Path = /                             //共享路径

     public = no                       //是否公开共享,若为否则进行身份验证    

     Writeable = yes              //是否可写

     write list = +smb         //有效用户

添加smb用户:useradd smb

设置密码:smbpasswd –a smb

启动samba:/etc/init.d/smb start 完成。

 

posted @ 2014-04-09 14:03  一剑百万兵  阅读(410)  评论(0)    收藏  举报