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      
  • # ----------------------- Standalone Server Options ------------------------    #   
  • # Scurity can be set to user, share(deprecated) or server(deprecated)      
  •         security = user                                   //用户级别,由提供服务的Samba服务器负责检查账户和密码      
  • #============================ Share Definitions ==============================      
  • [homes]                                                   //设置用户宿主目录            comment = Home Directories   
  •         browseable = no           writable = yes  
  • ;       valid users = %S    ;       valid users = MYDOMAIN%S   
  •    [public]   
  •         comment = Public Stuff            path = /share   
  •         public = yes     
  • [ts]                                                      //ts 组目录,只允许ts组成员访问            comment = TS  
  •         path = /ts            valid users = @ts