主要问题是[:root@localhost ~]# service smb restart关闭 SMB 服务: [失败]关闭 NMB 服务: [确定]启动 SMB 服务: [失败]启动 NMB 服务: [确定]我的配置如下:[global]workgroup = mshomeserver 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 = caiwupath = /home/samba/caiwupublic = novalid users = @caiwu,@lingdao,network02write list = caiwu01printable = no[lingdao]comment = lingdaopath = /home/samba/lingdaopublic = nobrowseable = novalid users = @lingdao,network02printable = no[exchage]comment = Exchange File Directorypath = /home/samba/exchangepublic = yeswritable = yeschmod -R 1777 /home/samba/exchange[public]comment = Read Only Publicpath = /home/samba/publicpublic = yesread only = yes希望哪个高手帮下忙。。分析下为什么始终不能启动这个进程。。。这个配置我还是参照网上一个配置的。。但是用自己的配置也是不能启动smb进程阿。。只有nmb进程启动。。
下面还有一段; [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 = noconnects;[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