2022年samba配置文件 .pdf

上传人:Che****ry 文档编号:34883817 上传时间:2022-08-19 格式:PDF 页数:3 大小:38.60KB
返回 下载 相关 举报
2022年samba配置文件 .pdf_第1页
第1页 / 共3页
2022年samba配置文件 .pdf_第2页
第2页 / 共3页
点击查看更多>>
资源描述

《2022年samba配置文件 .pdf》由会员分享,可在线阅读,更多相关《2022年samba配置文件 .pdf(3页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、Samba 配置的要点Samba 文件存储在/etc/samba/smb.conf文件中, smb.conf 文件被分为几个段,每个段是一个共享资源的描述,并有适当的名称。有三个特殊的段,global,homes,printers #= Global Settings = global 建立全局配置设置,详细定义在/usr/share/doc/samba/docs目录下的 smb.conf 手册页和Samba 文档中# workgroup = NT-Domain-Name or Workgroup-Name workgroup = MYGROUP 工作组设置# server string is

2、 the equivalent of the NT Description field 描述了将会出现在windows NT #网上邻居上中 server string = Samba Server # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the

3、 loopback interface. For more examples of the syntax see# the smb.conf man page ; hosts allow = 192.168.1. 192.168.2. 127.允许 192.168.1 的网段和 192.168.2 的网段以及回#环地址 127可以连接计算机#以上描述了局域网中允许连接的计算机# if you want to automatically load your printer list rather # 如果你想自动载入一个打印机的清单 # than setting them up individu

4、ally then youll need this # 这样就不必一个一个手动录入,可以使用 printcap name = /etc/printcap 覆盖 printcap的路径 load printers = yes 自动载入清单# It should not be necessary to spell out the print system type unless # yours is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; p

5、rinting = cups #关于打印机自动地从 SystemV中的 spool 系统中取得打印机列表。# This option tells cups that the data has already been rasterized cups options = raw # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user nobody is used 如果要启用 guest 用户就不要将下面的这行注释掉,并#且要将用户加入到/etc/pass

6、wd中; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects #下面这条告诉我们每台计算机都有一个不同的log 文件,通过这个文件和SAMBA 服务器相连。 log file = /var/log/samba/%m.log # all log information in one file 所有的 log 文件都放在这里# log file = /var/log/samba/smbd.log # Put a capping on the si

7、ze of the log files (in Kb).设置 log 文件长度的限制(单位Kb) 。 max log size = 50 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 3 页 - - - - - - - - - # Security mode. Most people will want user level security. See #阅读 security_level.txt for得到更多的细节# security_level.txt for d

8、etails. security = user 指定验证密码的方式# Use password server option only with security = server # 认证服务器的地址(是否与域用户有关系,有待研究); password server = # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case.(估计是密码和用户级别的设定); password level = 8 ; username lev

9、el = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. #如果你想使用加密的密码,请阅读Samba 文档中的 ENCRYPTION.TXT#= Share Definitions = idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /bin/false winbind use defa

10、ult domain = no homes 共享用户的主目录和指定的目录路径和权限 comment = Home Directories browseable = no writable = yes # Un-comment the following and create the netlogon directory for Domain Logons ; netlogon ; comment = Network Logon Service ; path = /home/netlogon ; guest ok = yes ; writable = no ; share modes = no

11、# Un-comment the following to provide a specific roving profile share # the default is to use the users home directory ;Profiles ; path = /home/profiles ; browseable = no ; guest ok = yes # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer p

12、rinters 通过定义共享打印机处理打印 comment = All Printers path = /var/spool/samba browseable = no 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 3 页 - - - - - - - - - # Set public = yes to allow user guest account to print guest ok = no writable = no printable = yes # This

13、one is useful for people to share files ;tmp ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes # A publicly accessible directory, but read only, except for people in # the staff group ;public ; comment = Public Stuff ; path = /home/samba ; public = yes ; read only = yes ; write list = staff 启动 samba的方法Service System-config-services /etc/rc.d/init.d/smb 脚本挂载 samba文件Mount t samba /ip 地址 /目录-O username=“用户 ”,名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 3 页 - - - - - - - - -

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁