嵌入式Linux的Samba移植后的 smb.conf文件的配置
来源:互联网 发布:vscode使用教程 编辑:程序博客网 时间:2024/04/28 09:48
# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
netbios name = 123
security = share
guest account = root
encrypt passwords = no
# server string is the equivalent of the NT Description field
server string = Samba Server
#客户端的IP地址
hosts allow = 192.168.1. 192.168.2.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# this tells Samba to use a separate log file for each machine
# that connects
log file = /usr/local/samba/var/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# 非常关键的一句
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
# if you already have a Windows NT domain controller doing this job
domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = yes
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
[opt]
comment = Rj
path =/home/user
writable = yes
available = yes
public=yes
browseable = yes
# valid users = @users 此句话千万不能要
guest ok = yes
# guest account = root 非常重要的一句话
netbios name = 123
security = share
guest account = root
encrypt passwords = no
# server string is the equivalent of the NT Description field
server string = Samba Server
#客户端的IP地址
hosts allow = 192.168.1. 192.168.2.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# this tells Samba to use a separate log file for each machine
# that connects
log file = /usr/local/samba/var/log.%m
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Security mode. Most people will want user level security. See
# 非常关键的一句
security = share
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
# interfaces = lo eth0 eth1 192.168.1.120/24 192.168.1.121/24
#smb服务器绑定的 网卡和IP地址 端口号
interfaces = lo eth0 192.168.1.120/24# if you already have a Windows NT domain controller doing this job
domain master = yes
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = yes
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
[opt]
comment = Rj
path =/home/user
writable = yes
available = yes
public=yes
browseable = yes
# valid users = @users 此句话千万不能要
guest ok = yes
0 0
- 嵌入式Linux的Samba移植后的 smb.conf文件的配置
- samba应用常见问题 和 修改后的smb.conf文件
- samba的smb.conf参考配置和设置密码方法
- Linux下的samba服务器配置文件详解 smb.conf
- Linux下的samba服务器配置文件详解 smb.conf
- smb.conf - Samba组件的配置文件
- samba的配置文件smb.conf详细说明
- samba配置用户权限文件smb.conf
- 嵌入式samba功能的实现,linux下samba的移植
- Ubuntu和CentOS下安装配置samba服务详细过程(超级简单的smb.conf)
- samba服务器中smb.conf中个参数的意义
- Ubuntu和CentOS超级简单的samba配置文件smb.conf
- samba服务配置--smb.conf
- Samba服务器配置 smb.conf
- Linux Samba服务主配文件smb.conf中文详解
- 精简版的smb.conf
- Ubuntu 下samba之smb.conf配置
- smb协议详解和samba服务的配置
- Java随机数的产生
- codeforce 757B
- C语言的条件编译 #if #elif #endif #ifndef #define
- 小程序实现五星点评
- HTTP、TCP、UDP、Socket、servlet区别与联系
- 嵌入式Linux的Samba移植后的 smb.conf文件的配置
- linux mint安装
- 小知识
- 小程序实现局部元素隐藏
- networkBehaviour的几种状态
- 欢迎去简书继续支持博主
- 斯坦福大学——机器学习第一课
- (0020)iOS 开发之-设计模式-懒加载解惑
- 小程序的事件