linux samba 配置问题。。但是

主要问题是[:root@localhost ~]# service smb restart
关闭 SMB 服务: [失败]
关闭 NMB 服务: [确定]
启动 SMB 服务: [失败]
启动 NMB 服务: [确定]

我的配置如下:
[global]
workgroup = mshome
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

cups options = raw

/etc/passwd

; guest account = pcguest

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

max log size = 50

; password server = <NT-Server-Name>

; realm = MY_REALM

; passdb backend = tdbsam

; include = /usr/local/samba/lib/smb.conf.%m

; 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
; security = user
username map = /etc/samba/smbusers
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; encrypt passwords = yes
; guest ok = no
; guest account = nobody
; encrypt passwords = yes
; encrypt passwords = yes
; encrypt passwords = yes
; guest ok = no
; guest account = nobody

; 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 ==============================
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775

[caiwu]
comment = caiwu
path = /home/samba/caiwu
public = no
valid users = @caiwu,@lingdao,network02
write list = caiwu01
printable = no

[lingdao]
comment = lingdao
path = /home/samba/lingdao
public = no
browseable = no
valid users = @lingdao,network02
printable = no

[exchage]
comment = Exchange File Directory
path = /home/samba/exchange
public = yes
writable = yes
chmod -R 1777 /home/samba/exchange

[public]
comment = Read Only Public
path = /home/samba/public
public = yes
read only = yes

希望哪个高手帮下忙。。分析下为什么始终不能启动这个进程。。。这个配置我还是参照网上一个配置的。。但是用自己的配置也是不能启动smb进程阿。。只有nmb进程启动。。
最新回答
枯墨云

2024-07-03 07:49:01

下面还有一段
; [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 = /usr/spool/samba
browseable = no

; guest ok = no
; writeable = no
printable = yes

;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = @staff

;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/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
connects
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes

;[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
[Desktop]
path = /root/Desktop
; writeable = no
browseable = yes
guest ok = yes
; writeable = no
; writeable = no