CentOS 6.3下Samba服务器的安装与配置方法(图文详解)

2020-01-30 14:44:48刘景俊
  • # Log File let you specify where to put logs and how to split them up.      
  •         log file = /var/log/samba/log.%m                  //定义Samba用户的日志文件,%m代表客户端主机名                                                              //Samba服务器会在指定的目录中为每个登陆主机建立不同的日志文件   
  • # ----------------------- Standalone Server Options ------------------------    #   
  • # Scurity can be set to user, share(deprecated) or server(deprecated)      
  •         security = share                                  //共享级别,用户不需要账号和密码即可访问      
  • #============================ Share Definitions ==============================      
  • [public]                                                  //设置针对的是共享目录个别的设置,只对当前的共享资源起作用            comment = Public Stuff                            //对共享目录的说明文件,自己可以定义说明信息   
  •         path = /share                                     //用来指定共享的目录,必选项            public = yes                                      //所有人可查看,等效于guest ok = yes