samba学习之配置案例

简介:

  samba学习之配置案例

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

[global]

   workgroup = WORKGROUP

   server string =Bjicpark's Files Server

   display charset = cp936

   unix charset = cp936

   dos charset = cp936

 

;   hosts allow = 192.168.1. 192.168.2. 127.

 

 

   printcap name = /etc/printcap

   load printers = yes

   printing = cups

;  guest account = pcguest

 

 

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

   max log size = 50

 

 

   security = user

;  password level = 8

;  username level = 8

 

 

   encrypt passwords = yes

   smb passwd file = /etc/samba/smbpasswd

;  ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt

   unix password sync = Yes

   passwd program = /usr/bin/passwd %u

   passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

 

   pam password change = yes

   username map = /etc/samba/smbusers

   map to guest = Bad User

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

 

   obey pam restrictions = yes

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

 

 

;  interfaces = 192.168.12.2/24 192.168.13.2/24

 

;  remote browse sync = 192.168.3.25 192.168.5.255

;  remote announce = 192.168.1.255 192.168.2.44

 

 

;  local master = no

 

;  os level = 33

 

 

;  domain master = yes

;  preferred master = yes

;  domain logons = yes

 

;  logon script = %m.bat

;  logon script = %U.bat

;  logon path = \\%L\Profiles\%U

 

;  wins support = yes

;  wins server = w.x.y.z

;  wins proxy = yes

   dns proxy = no

 

;  preserve case = no

;  short preserve case = no

;  default case = lower

;  case sensitive = no

 

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

[homes]

   comment = Home Directories

   browseable = no

   writable = yes

   valid users = %S

   create mode = 0700

   directory mode = 0700

;  map to guest = bad user

 

; [netlogon]

;  comment = Network Logon Service

;  path = /usr/local/samba/lib/netlogon

;  guest ok = yes

;  writable = no

;  share modes = no

 

;[Profiles]

;  path = /usr/local/samba/profiles

;  browseable = no

;  guest ok = yes

 

[printers]

   comment = All Printers

   path = /var/spool/samba

   browseable = no

   guest ok = no

   writable = no

   printable = yes

 

;[tmp]

;  comment = Temporary file space

;  path = /tmp

;  read only = no

;  public = yes

 

#[public]

;  comment = Public Stuff

;  path = /software

;  public = yes

;  writable = yes

;  printable = no

;  write list = zxy

 

 

;[fredsprn]

;  comment = Fred's Printer

;  valid users = fred

;  path = /home/fred

;  printer = freds_printer

;  public = no

;  writable = no

;  printable = yes

 

 

;[fredsdir]

;  comment = Fred's Service

;  path = /usr/somewhere/private

;  valid users = fred

;  public = no

;  writable = yes

;  printable = no

 

 

;[pchome]

;  comment = PC Directories

;  path = /usr/local/pc/%m

;  public = no

;  writable = yes



本文转自netsword 51CTO博客,原文链接:http://blog.51cto.com/netsword/492489

相关文章
|
网络协议 安全 Linux
小白带你学习文件共享服务器FTP和SAMBA的学习(二十二)
小白带你学习文件共享服务器FTP和SAMBA的学习(二十二)
190 0
|
8月前
|
监控 安全 Linux
深入探讨Samba服务器的配置与使用
深入探讨Samba服务器的配置与使用
665 0
|
Oracle Java 关系型数据库
LAMP 出现和工作原理介绍 | 学习笔记
快速学习LAMP 出现和工作原理介绍
272 0
LAMP 出现和工作原理介绍 | 学习笔记
服务器上--Linux常用命令学习
服务器上--Linux常用命令学习
|
Linux 网络安全
LINUX SAMBA服务案列参考
LINUX SAMBA服务案列参考
119 0
|
Ubuntu Linux Shell
(一)linux常用命令之用户配置
超级用户(root)和普通用户 a)超级用户:可以在linux下做任何事情,不受限制 b)普通用户:在linux下做有限的事情 普通用户的命令提示符是 # ,普通用户的命令提示符是$ 命令:su[用户名]
279 0
|
Linux 开发工具 vr&ar
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(2)
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(2)
398 0
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(2)
|
运维 安全 Linux
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(1)
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(1)
263 0
Linux【实操篇】—— 远程登录、远程文件传输、vi和vim工具的使用方法(1)
|
网络协议 API 数据安全/隐私保护