介绍一下linux下的samba服务
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-03
没有显示出在这个例子中 (,既然没有写好的范本,很多功能只有我们手动添加了) # For a step to step guide on installing, configuring and using samba, 对于一个步骤,一步一步的指导安装,配置和使用samba # read the Samba-HOWTO-Collection. This may be obtained from: # [url]http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf[/url] # # Many wo***ng examples of smb.conf files can be found in the 许多工作的例子smb.conf文件中可以找到 # Samba-Guide which is generated daily and can be downloaded from: # [url]http://www.samba.org/samba/docs/Samba-Guide.pdf[/url] # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" 当你修改这个文件你应该运行命令“ testparm # to check that you have not made any basic syntactic errors. 检查你有没有作出任何基本语法错误 # #--------------- # SELINUX NOTES: 一些注意事项 # # If you want to use the useradd/groupadd family of binaries please run: # setsebool -P samba_domain_controller on # # If you want to share home directories via samba please run: # setsebool -P samba_enable_home_dirs on # # If you create a new directory you want to share you should mark it as # "samba-share_t" so that selinux will let you write into it.# Make sure not to do that on system directories as they may already have # been marked with othe SELinux labels. # # Use ls -ldZ /path to see which context a directory has # # Set labels only on directories you created! # To set a label use the following: chcon -t samba_share_t /path # # If you need to share a system created directory you can use one of the # following (read-only/read-write): # setsebool -P samba_export_all_ro on # or # setsebool -P samba_export_all_rw on # # If you want to run scripts (preexec/root prexec/print command/...) please # put them into the /var/lib/samba/scripts directory so that smbd will be # allowed to run them. # Make sure you COPY them and not MOVE them so that the right SELinux context # is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts # #-------------- # #======================= Global Settings ===================================== 全局设置 [global] # ----------------------- Netwrok Related Options ------------------------- # # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH # # server string is the equivalent of the NT Description field # # netbios name can be used to specify a server name not tied to the hostname # # Interfaces lets you configure Samba to use multiple interfaces # If you have multiple network interfaces then you can list the ones # you want to listen on (never omit localhost) # # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can # specifiy it as a per share option as well #workgroup = MYGROUP server s |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: 我不是红旗LINUX的托下一篇: linux系统:添加新磁盘实施磁盘空间配额
关于介绍一下linux下的samba服务的所有评论