免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 819 | 回复: 3
打印 上一主题 下一主题

boss要俺配一台linux的PDC,大家帮忙贴个smb.conf [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-21 16:28 |只看该作者 |倒序浏览
最近BOSS不知发了那门子风硬要俺配一台linux的PDC,大家帮忙贴个

论坛徽章:
0
2 [报告]
发表于 2004-04-21 16:52 |只看该作者

boss要俺配一台linux的PDC,大家帮忙贴个smb.conf

[quote]原帖由 "pdiunix"]最近BOSS不知发了那门子风硬要俺配一台linux的PDC,大家帮忙贴个[/quote 发表:


请问什么叫 “PDC”啊?

论坛徽章:
0
3 [报告]
发表于 2004-04-21 17:05 |只看该作者

boss要俺配一台linux的PDC,大家帮忙贴个smb.conf

在LINUX下没有NT那样的PDC。

论坛徽章:
0
4 [报告]
发表于 2004-04-21 17:09 |只看该作者

boss要俺配一台linux的PDC,大家帮忙贴个smb.conf

  1. # workgroup = NT-Domain-Name or Workgroup-Name
  2.    workgroup = redhat
  3.    netbios name = home
  4. # server string is the equivalent of the NT Description field
  5.    server string = Samba Server %v

  6. hosts allow = 192.168.0.0/255.255.255.0

  7. # if you want to automatically load your printer list rather
  8. # than setting them up individually then you'll need this
  9. ;   printcap name = /etc/printcap
  10. ;   load printers = yes

  11. # It should not be necessary to spell out the print system type unless
  12. # yours is non-standard. Currently supported print systems include:
  13. # bsd, sysv, plp, lprng, aix, hpux, qnx
  14. ;   printing = bsd

  15. # Uncomment this if you want a guest account, you must add this to /etc/passwd
  16. # otherwise the user "nobody" is used
  17. ; guest account = pcguest

  18. # this tells Samba to use a separate log file for each machine
  19. # that connects
  20.    log file = /var/log/samba/%m.log

  21. # Put a capping on the size of the log files (in Kb).
  22.    max log size = 50

  23. # Security mode. Most people will want user level security. See
  24. # security_level.txt for details.
  25.    security = user
  26. # Use password server option only with security = server
  27. ;   password server = <NT-Server-Name>;

  28. # Password Level allows matching of _n_ characters of the password for
  29. # all combinations of upper and lower case.
  30. ;  password level = 8
  31. ;  username level = 8

  32. # You may wish to use password encryption. Please read
  33. # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
  34. # Do not enable this option unless you have read those documents
  35. encrypt passwords = yes
  36. smb passwd file = /etc/samba/smbpasswd

  37. unix password sync = Yes
  38. passwd program = /usr/bin/passwd %u
  39. passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

  40. # Unix users can map to different SMB User names
  41. username map = /etc/samba/smbusers

  42. # Using the following line enables you to customise your configuration
  43. # on a per machine basis. The %m gets replaced with the netbios name
  44. # of the machine that is connecting
  45. ;include = /etc/samba/smb.conf %m

  46. # Most people will find that this option gives better performance.
  47. # See speed.txt and the manual pages for details
  48.    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192

  49. # Configure Samba to use multiple interfaces
  50. # If you have multiple network interfaces then you must list them
  51. # here. See the man page for details.
  52. interfaces = 192.168.0.1/24

  53. # Configure remote browse list synchronisation here
  54. #  request announcement to, or browse list sync from:
  55. #        a specific host or from / to a whole subnet (see below)
  56. ;   remote browse sync = 192.168.3.25 192.168.5.255
  57. # Cause this host to announce itself to local subnets here
  58. ;   remote announce = 192.168.1.255 192.168.2.44
  59. # Browser Control Options:
  60. # set local master to no if you don't want Samba to become a master
  61. # browser on your network. Otherwise the normal election rules apply
  62. local master = yes

  63. # OS Level determines the precedence of this server in master browser
  64. # elections. The default value should be reasonable
  65. os level = 65

  66. # Domain Master specifies Samba to be the Domain Master Browser. This
  67. # allows Samba to collate browse lists between subnets. Don't use this
  68. # if you already have a Windows NT domain controller doing this job
  69. domain master = yes

  70. # Preferred Master causes Samba to force a local browser election on startup
  71. # and gives it a slightly higher chance of winning the election
  72. preferred master = yes

  73. # Enable this if you want Samba to be a domain logon server for
  74. # Windows95 workstations.
  75. domain logons = yes

  76. # if you enable domain logons then you may want a per-machine or
  77. # per user logon script
  78. # run a specific logon batch file per workstation (machine)
  79. ;logon script = %m.bat
  80. # run a specific logon batch file per username
  81. logon script = %U.bat

  82. # Where to store roving profiles (only for Win95 and WinNT)
  83. #        %L substitutes for this servers netbios name, %U is username
  84. #        You must uncomment the [Profiles] share below
  85. ;logon path = \\%L\Profiles\%U

  86. # The example below excludes use of name resolution for machines that are NOT
  87. # on the local network segment
  88. # - OR - are not deliberately to be known via lmhosts or via WINS.
  89. name resolve order = wins lmhosts bcast

  90. # Windows Internet Name Serving Support Section:
  91. # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
  92. wins support = yes
  93. dead time = 15
  94. unix charset = GB2312

  95. [homes]
  96.    comment = Home Directories
  97.    browseable = no
  98.    writeable = yes
  99. # If you want users samba doesn't recognize to be mapped to a guest user
  100. map to guest = bad user

  101. # Un-comment the following and create the netlogon directory for Domain Logons
  102. [netlogon]
  103.    comment = Network Logon Service
  104.    path = /home/netlogon
  105.    browseable = no
  106.    guest ok = yes
  107.    write list = root
  108.    share modes = no

  109. # Un-comment the following to provide a specific roving profile share
  110. # the default is to use the user's home directory
  111. [Profiles]
  112.     path = /home/profiles
  113.     writeable = yes
  114.     create mask = 0600
  115.     directory mask = 0700
  116.     browseable = no

  117. # NOTE: If you have a BSD-style print system there is no need to
  118. # specifically define each individual printer
  119. [printers]
  120.    comment = All Printers
  121.    path = /var/spool/samba
  122.    browseable = yes
  123.    printable = yes

  124. [CD-ROM]
  125.    path = /mnt/cdrom
  126.    public = yes
  127.    browseable = yes
  128.    only guest = yes
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP