- 论坛徽章:
- 0
|
我用的是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 编辑 ] |
|