Samba 4.17.12-Debian 配置文件说明中英双语版

这篇具有很好参考价值的文章主要介绍了Samba 4.17.12-Debian 配置文件说明中英双语版。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

# Debian GNU/Linux 的 Samba 套件的示例配置文件。

# Sample configuration file for the Samba suite for Debian GNU/Linux.

# 这是主要的 Samba 配置文件。您应该阅读smb.conf (5) 手册页以了解此处列出的选项。 Samba 有大量可配置选项,其中大部分未在本示例中显示

# This is the main Samba configuration file. You should read the smb.conf(5) manual page in order to understand the options listed here. Samba has a huge number of configurable options most of which are not shown in this example

# 一些通常值得调整的选项已作为注释掉的示例包含在该文件中。

# Some options that are often worth tuning have been included as commented-out examples in this file.

# - 当这些选项用“;”注释时,建议的设置与默认的 Samba行为不同

#  - When such options are commented with ";", the proposed setting differs from the default Samba behaviour

# - 当用“#”注释时,建议的设置是 Samba 的默认行为,但该选项被认为很重要,需要在此处提及

#  - When commented with "#", the proposed setting is the default behaviour of Samba, but the option is considered important to be mentioned here

# 注意:每当您修改此文件时,您都应该运行命令“ testparm ”来检查您是否没有犯任何基本的语法错误。

# NOTE: Whenever you modify this file you should run the command "testparm" to check that you have not made any basic syntactic errors.

# 全局设置

#======================= Global Settings =======================

[global]

## 浏览/识别###

## Browsing/Identification ###

# 将其更改为您的 Samba 服务器所属的工作组/NT 域名

# Change this to the workgroup/NT-domain name your Samba server will part of

   workgroup = WORKGROUP

#### 联网####

#### Networking ####

# 绑定到此的特定接口/网络集可以是接口名称或 IP 地址/网络掩码;接口名称通常是首选

# The specific set of interfaces / networks to bind to this can be either the interface name or an IP address/netmask; interface names are normally preferred

;   interfaces = 127.0.0.0/8 eth0

# 仅绑定到指定的接口和/或网络;您必须使用上面的“接口”选项才能使用它。

# Only bind to the named interfaces and/or networks; you must use the 'interfaces' option above to use this.

# 如果您的 Samba 机器受防火墙保护或者本身就是防火墙,建议您启用此功能。但是,此选项无法正确处理动态或非广播接口。

# It is recommended that you enable this feature if your Samba machine is protected by a firewall or is a firewall itself.  However, this option cannot handle dynamic or non-broadcast interfaces correctly.

;   bind interfaces only = yes

####  调试/统计 ####

#### Debugging/Accounting ####

# 这告诉 Samba 对每台连接的机器使用单独的日志文件

# This tells Samba to use a separate log file for each machine connects

   log file = /var/log/samba/log.%m

# 限制单个日志文件的大小(以 KiB 为单位)。

# Cap the size of the individual log files (in KiB).

   max log size = 1000

# 我们希望 Samba 仅记录到 /var/log/samba/log.{ smbd,nmbd }。

# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.

# 如果您希望将重要消息也发送到 syslog,请附加 syslog@1。

# Append syslog@1 if you want important messages to be sent to syslog too.

   logging = file

# 当 Samba 崩溃时做一些明智的事情:给管理员发送回溯邮件

# Do something sensible when Samba crashes: mail the admin a backtrace

   panic action = /usr/share/samba/panic-action %d

#验证

####### Authentication #######

# 服务器角色。定义 Samba 将在哪种模式下运行。可能的值为“独立服务器”、“成员服务器”、“经典主域控制器”、“经典备份域控制器”、“活动目录域控制器”。

# Server role. Defines in which mode Samba will operate. Possible values are "standalone server", "member server", "classic primary domain controller", "classic backup domain controller", "active directory domain controller".

#

# 大多数人会想要“独立服务器”或“会员服务器”。

# Most people will want "standalone server" or "member server".

# 作为“活动目录域控制器”运行将需要首先运行“samba-tool 域配置”来擦除数据库并创建新域。

# Running as "active directory domain controller" will require first running "samba-tool domain provision" to wipe databases and create a new domain.

   server role = standalone server

   obey pam restrictions = yes

# 该布尔参数控制当passdb中的加密 SMB 密码更改时,Samba 是否尝试将 Unix 密码与 SMB 密码同步。

# This boolean parameter controls whether Samba attempts to sync the Unix password with the SMB password when the encrypted SMB password in the passdb is changed.

   unix password sync = yes

# 要使 Unix 密码同步在 Debian GNU/Linux 系统上工作,必须设置以下参数(感谢 Ian Kahan <<kahan@informatik.tu-muenchen.de> 为 Debian 中的 passwd 程序发送正确的聊天脚本中士)。

# For Unix password sync to work on a Debian GNU/Linux system, the following parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for sending the correct chat script for the passwd program in Debian Sarge).

   passwd program = /usr/bin/passwd %u

   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# 当 SMB 客户端请求时,此布尔值控制是否使用 PAM 来更改密码,而不是使用“passwd 程序”中列出的程序。默认为“否”。

# This boolean controls whether PAM will be used for password changes when requested by an SMB client instead of the program listed in 'passwd program'. The default is 'no'.

   pam password change = yes

# 此选项控制如何将不成功的身份验证尝试映射到匿名连接

# This option controls how unsuccessful authentication attempts are mapped to anonymous connections

   map to guest = bad user

#域

########## Domains ###########

#

# 以下设置仅在设置了“服务器角色=经典主域控制器”、“服务器角色=经典备份域控制器”或“域登录”时才生效

# The following settings only takes effect if 'server role = classic primary domain controller', 'server role = classic backup domain controller' or 'domain logons' is set

#

# 从客户端角度指定用户配置文件目录的位置)以下要求在 samba 服务器上设置 [profiles] 共享(见下文)

# It specifies the location of the user's profile directory from the client point of view) The following required a [profiles] share to be setup on the samba server (see below)

;   logon path = \\%N\profiles\%U

# 另一个常见的选择是将配置文件存储在用户的主目录中(这是 Samba 的默认目录)

# Another common choice is storing the profile in the user's home directory (this is Samba's default)

#   logon path = \\%N\%U\profile

# 以下设置仅在设置了 'domain logons' 时才生效 它指定用户主目录的位置(从客户端角度来看)

# The following setting only takes effect if 'domain logons' is set It specifies the location of a user's home directory (from the client point of view)

;   logon drive = H:

#   logon home = \\%N\%U

# 以下设置仅在设置“domain logons”时才生效 它指定登录期间运行的脚本。该脚本必须存储在 [ netlogon ] 共享

# The following setting only takes effect if 'domain logons' is set It specifies the script to run during logon. The script must be stored in the [netlogon] share

# 注意:必须以“DOS”文件格式约定存储

# NOTE: Must be store in 'DOS' file format convention

;   logon script = logon.cmd

# 这允许通过 SAMR RPC 管道在域控制器上创建 Unix 用户。按照您的需求,该示例命令创建一个具有禁用 Unix 密码的用户帐户

# This allows Unix users to be created on the domain controller via the SAMR RPC pipe.  The example command creates a user account with a disabled Unix password; please adapt to your needs

; add user script = /usr/sbin/useradd --create-home %u

# 这允许通过 SAMR RPC 管道在域控制器上创建计算机帐户。

# This allows machine accounts to be created on the domain controller via the SAMR RPC pipe. 

# 以下假设系统上存在“machines”组

# The following assumes a "machines" group exists on the system

; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# 这允许通过 SAMR RPC 管道在域控制器上创建 Unix 组。

# This allows Unix groups to be created on the domain controller via the SAMR RPC pipe. 

; add group script = /usr/sbin/addgroup --force-badname %g

#其他

############ Misc ############

# 使用以下行可以让您在每台机器的基础上自定义配置。 %m 被替换为正在连接的机器的netbios名称

# Using the following line enables you to customise your configuration on a per machine basis. The %m gets replaced with the netbios name of the machine that is connecting

;   include = /home/samba/etc/smb.conf.%m

# winbind的一些默认值(确保您没有将这些范围用于其他用途。)

# Some defaults for winbind (make sure you're not using the ranges for something else.)

;   idmap config * :              backend = tdb

;   idmap config * :              range   = 3000-7999

;   idmap config YOURDOMAINHERE : backend = tdb

;   idmap config YOURDOMAINHERE : range   = 100000-999999

;   template shell = /bin/bash

#  设置usershare选项,使非 root 用户能够使用 net usershare命令共享文件夹。

# Setup usershare options to enable non-root users to share folders with the net usershare command.

#  用户共享的最大数量。 0 表示禁用用户共享。

# Maximum number of usershare. 0 means that usershare is disabled.

#   usershare max shares = 100

#  允许被授予usershare权限的用户创建公共共享,而不仅仅是经过身份验证的共享

# Allow users who've been granted usershare privileges to create public shares, not just authenticated ones

   usershare allow guests = yes

#共享定义

#======================= Share Definitions =======================

[homes]

   comment = Home Directories

   browseable = no

# 默认情况下,主目录导出为只读。如果您希望能够写入它们,请将下一个参数更改为“no”。

# By default, the home directories are exported read-only. Change the next parameter to 'no' if you want to be able to write to them.

   read only = yes

#  出于安全原因,文件创建掩码设置为 0700。如果要创建具有 group= rw权限的文件,请将下一个参数设置为 0775。

# File creation mask is set to 0700 for security reasons. If you want to create files with group=rw permissions, set next parameter to 0775.

   create mask = 0700

#  出于安全原因,目录创建掩码设置为 0700。如果你想创建目录。使用 group= rw权限,将下一个参数设置为 0775。

# Directory creation mask is set to 0700 for security reasons. If you want to create dirs. with group=rw permissions, set next parameter to 0775.

   directory mask = 0700

# 默认情况下,任何有权访问 samba 服务器的人都可以连接到 \\server\username 共享。

# By default, \\server\username shares can be connected to by anyone with access to the samba server.

# 以下参数确保只有“username”可以连接到\\server\username

# The following parameter makes sure that only "username" can connect to \\server\username

# 使用外部身份验证方案时可能需要调整

# This might need tweaking when using external authentication schemes

   valid users = %S

# 取消注释以下内容并为域登录创建netlogon目录(您还需要将 Samba 配置为充当域控制器。)

# Un-comment the following and create the netlogon directory for Domain Logons (you need to configure Samba to act as a domain controller too.)

;[netlogon]

;   comment = Network Logon Service

;   path = /home/samba/netlogon

;   guest ok = yes

;   read only = yes

# 取消注释以下内容并创建配置文件目录来存储用户配置文件(请参阅上面的“登录路径”选项)(您还需要将 Samba 配置为充当域控制器。)

# Un-comment the following and create the profiles directory to store users profiles (see the "logon path" option above) (you need to configure Samba to act as a domain controller too.)

# 下面的路径应该对所有用户都是可写的,以便他们的配置文件目录可以在他们第一次登录时创建

# The path below should be writable by all users so that their profile directory may be created the first time they log on

;[profiles]

;   comment = Users profiles

;   path = /home/samba/profiles

;   guest ok = no

;   browseable = no

;   create mask = 0600

;   directory mask = 0700

[printers]

   comment = All Printers

   browseable = no

   path = /var/tmp

   printable = yes

   guest ok = no

   read only = yes

   create mask = 0700

# Windows 客户端查找此共享名作为可下载打印机驱动程序的来源

# Windows clients look for this share name as a source of downloadable printer drivers

[print$]

   comment = Printer Drivers

   path = /var/lib/samba/printers

   browseable = yes

   read only = yes

   guest ok = no

# 取消注释以允许远程管理 Windows 打印驱动程序。

# Uncomment to allow remote administration of Windows print drivers.

# 您可能需要将“ lpadmin ”替换为您的管理员用户所属组的名称。

# You may need to replace 'lpadmin' with the name of the group your admin users are members of.

# 请注意,您还需要为 drivers 目录设置适当的 Unix 权限,以便这些用户具有写入权限

# Please note that you also need to set appropriate Unix permissions to the drivers directory for these users to have write rights in it

;   write list = root, @lpadmin文章来源地址https://www.toymoban.com/news/detail-812602.html

到了这里,关于Samba 4.17.12-Debian 配置文件说明中英双语版的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 中英双语大模型ChatGLM论文阅读笔记

    论文传送门: [1] GLM: General Language Model Pretraining with Autoregressive Blank Infilling [2] Glm-130b: An open bilingual pre-trained model Github链接: THUDM/ChatGLM-6B GLM-130B 和 GPT-3 175B(davinci) 相比,参数量减少,但性能提升了。 INT4 quantization without post training INT4量化是一种将模型的权重和激活从使用

    2024年02月02日
    浏览(35)
  • 中英双语对话大语言模型:ChatGLM-6B

    ChatGLM-6B 是一个开源的、支持中英双语的对话语言模型,基于 General Language Model (GLM) 架构,具有 62 亿参数。结合模型量化技术,用户可以在消费级的显卡上进行本地部署(INT4 量化级别下最低只需 6GB 显存)。 ChatGLM-6B 使用了和 ChatGPT 相似的技术,针对中文问答和对话进行了优

    2024年02月12日
    浏览(30)
  • 英文视频添加中英双语字幕(基于Whisper语音识别和Google翻译)

    可以参考以下博客的内容讲显卡驱动,CUDA和cudnn的安装比较详细,我建议能用GPU加速就尽量使用,Whisper速度有点慢 如何在你的电脑上完成whisper的简单部署_Wayne_WX的博客-CSDN博客  Windows使用whisper前需要进行的一些环境配置 https://blog.csdn.net/m0_52156129/article/details/129263703 我的f

    2024年02月09日
    浏览(35)
  • 【AI】清华开源中英双语对话模型ChatGLM2-6B本地安装笔记

    首先,直接上资源,网盘中是ChatGLM2-6B源码及模型文件: 链接:https://pan.baidu.com/s/1DciporsVT-eSiVIAeU-YmQ 提取码:cssa 官方的Readme已经很详尽了,再写点安装博客有点画蛇添足。本着记录自己的工作内容的初衷,还是写一写吧,毕竟输出才是最好的学习。 本文记录了本地安装Cha

    2024年02月16日
    浏览(42)
  • wordpress搭建中英文双语言或多语言的网站详解

    建立多语言切换的网站有两种方式,一种是子域名形式,另一种则是子目录形式。而以这两种形式建站,中文站点和外文站点都是独立的网站,这就相当于是两个网站,站长需要对这两个网站进行设置及维护。并不是只要建立好中文站点,外文站点就会自动翻译。 以子目录的

    2023年04月23日
    浏览(35)
  • 微信小程序英文版:实现一键切换中英双语版(已组件化)

    已经重新优化代码做成了组件,需要可自取:https://github.com/CrystalCAI11/wechat-language-compoment 所有操作都打包在组件里不需要在额外的地方添加代码,直接在你需要的页面里导入组件,再在对应页面的onLoad()里set文本就行了。 第一步,找个地方新建中英文两个字典,我是放在ut

    2024年04月17日
    浏览(40)
  • debian12.4配置

    在虚拟机中装了一个debian12.4, 想配置ssh客户端连接, 出了问题. 配置乱了, 还好长了个心眼, 做了快照. 发现2个问题: debian12.4默认安装完, 有ssh, 先检查一下ssh是否存在, 如果因为其他原因(e.g.反复尝试安装/卸载/配置openssh, 将ssh弄掉了)导致ssh不在了, 要先安装ssh debian12.4默认安装

    2024年01月21日
    浏览(32)
  • 最强开源中英双语大模型发布,340亿参数超越Llama2-70B !

        Aquila2模型全系开源地址: https://github.com/FlagAI-Open/Aquila2 https://model.baai.ac.cn/ https://huggingface.co/BAAI Aquila2-34B在代码生成、考试、理解、推理、语言四个维度的22个评测基准上,霸占了多个榜单TOP 1。  相较于大模型榜单分数,业内更看重对推理、泛化等重要模型实际能力的

    2024年01月24日
    浏览(41)
  • Debian12 安装jenkins 公钥配置

    jenkins公钥配置 参考:Debian Jenkins 软件包 这是 Jenkins 的 Debian 软件包存储库,用于自动安装和升级。 要使用此存储库,请先将密钥添加到您的系统(对于每周发布行): 然后添加一个 Jenkins apt 存储库条目: 更新本地软件包索引,最后安装 Jenkins: 启动jenkins 访问 登录页面

    2024年01月17日
    浏览(31)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包