我在配置samba的时候没结果,请帮忙看看!
我在这里看了文章之后配置了一下我的samba,之后我进行如下的操作:# /etc/rc.d/init.d/smb start
启动 SMB 服务: [确定]
启动 NMB 服务: [确定]
# /usr/bin/smbclient -L SMBserver
added interface ip=192.168.0.87 bcast=192.168.0.255 nmask=255.255.255.0
Connection to SMBserver failed
而我的机器的samba的配置是这样的:
Load smb config files from /etc/samba/smb.conf
Processing section ""
Processing section ""
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
client code page=936
workgroup = T123
server string = Red Hat 9
hosts allow = 192.168.1. 192.168.2. 127.10.
printcap name = /etc/printcap
load printers = yes
printing = cups
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
security = share
password server = <NT-Server-Name>
password level = 0
uname level = 0
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
uname map = /etc/samba/smbusers
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.12.2/24 192.168.13.2/24
remote browse sync = 192.168.3.25 192.168.5.255
local master = no
os level = 33
domain master = yes
preferred master = yes
domain logons = yes
comment = Home Directories
browseable = yes
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
; map to guest = bad user
;
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
;
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
;
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
;
; comment = Public Stuff
; path = /home
; public = yes
; writable = yes
; printable = no
; write list = @staff
;
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
我是个新手,我现在找不出我的配置的问题了,请高手给点提示和指点!谢谢~~~~!
页:
[1]