免费注册 查看新帖 |

Chinaunix

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

请教smb奇怪启动问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-02 11:14 |只看该作者 |倒序浏览
我用的是redhat9 smb2.27从去年11月份以来使用都是正常,现在突然不能正常使用,主要表现为,smb自动停止,重启smb后最多20分钟就会停止,以前从未出现过此情况。从“服务”里面看到提示
“smbd is stopped
nmbd (pid 6649) is running...”
    smb重启后,用户可以正常使用,在客户端(win2000+xp)都可以访问设置的权限文件。
   那位高手帮我看看,以下是我的smb.conf配置文件。
#======================= Global Settings =====================================
[global]
        log file = /var/log/samba/%m.log
        smb passwd file = /etc/samba/smbpasswd
        load printers = yes
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al
l*authentication*tokens*updated*successfully*
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        obey pam restrictions = yes
        encrypt passwords = yes
        passwd program = /usr/bin/passwd %u
        dns proxy = no
        netbios name = linux_office
        server string = Redhat Server
        printing = cups
        unix password sync = Yes
        workgroup = redhat office
        os level = 20
        printcap name = /etc/printcap
        security = user
        max log size = 0
        pam password change = yes

[homes]
        browseable = no
        writeable = yes
        comment = Home Directories
        valid users = %S
        create mode = 0660
        directory mode = 0770

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /home/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/local/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# 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.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765

[cw_center]
        comment = cai wu zhong xin  wen jian
        writeable = yes
        invalid users = @hotelcenter,@xzcenter
        path = /hdb/cw_center

[xz_center]
        comment = xing zhen zhong xin wen jian
        writeable = yes
        invalid users = @cwcenter,@hotelcenter
        path = /hdb/xz_center

[share_software]
        comment = gong gong ruan jian
        writeable = yes
        invalid users = @xzcenter,@cwcenter
        path = /hdb/share_software


[games]
        comment = games files
        writeable = yes
        invalid users = @xzcenter,@cwcenter,@hotelcenter
        path = /hdb/games


[share_files]
        comment = gong gong wen jian
        writeable = yes
        invalid users = gan
        path = /hdb/share_files

[ 本帖最后由 whmrwang 于 2006-4-2 12:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-04-03 09:45 |只看该作者
没遇上过这种情况,试试testparm

论坛徽章:
0
3 [报告]
发表于 2006-04-04 07:49 |只看该作者
去看下log
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP