LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 781|回复: 0

SMB的配置问题

[复制链接]
发表于 2005-12-28 14:23:04 | 显示全部楼层 |阅读模式
下面是我整理的SMB的配置文件,请高手帮忙修改一下,屏蔽掉不常用的选项,谢谢~~
[global]
   workgroup = MYGROUP
   server string = Samba Server
   security = user
   hosts allow = 192.168.1. 192.168.2. 127.
   load printers = yes
   printcap name = /etc/printcap
   printcap name = lpstat
   printing = cups
   guest account = pcguest
   log file = /var/log/samba/log.%m
   max log size = 50
   password server = *
   password server = <NT-Server-Name>
   realm = MY_REALM
   passdb backend = tdbsam
   include = /usr/local/samba/lib/smb.conf.%m
   socket options = TCP_NODELAY
   interfaces = 192.168.12.2/24 192.168.13.2/24
   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
   add user script = /usr/sbin/useradd %u
  add group script = /usr/sbin/groupadd %g
  add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
  delete user script = /usr/sbin/userdel %u
  delete user from group script = /usr/sbin/deluser %u %g
  delete group script = /usr/sbin/groupdel %g

#============================ Share Definitions ==============================
[myshare]
   comment = Mary's and Fred's stuff
   path = /home/ftp
   valid users = mary fred
   public = yes
   writable = yes
   printable = yes
   create mask = 0765
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表