刚才不能访问的ip,已可以成功访问!
[root@gjp99 ~]# ll /var/log/samba/ 发现没有访问日志
total 12
drwx------ 4 root root 4096 Aug 3 14:09 cores
-rw-r--r-- 1 root root 1450 Aug 3 15:09 nmbd.log
-rw-r--r-- 1 root root 3454 Aug 3 15:38 smbd.log
[root@gjp99 ~]# vim /etc/samba/smb.conf
[root@gjp99 ~]# service smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@gjp99 ~]# ll /var/log/samba/ 还没有日志文件
total 12
drwx------ 4 root root 4096 Aug 3 14:09 cores
-rw-r--r-- 1 root root 1688 Aug 3 16:27 nmbd.log
-rw-r--r-- 1 root root 3600 Aug 3 16:27 smbd.log
说明需要访问下,才能够产生!
虽然没进去,说明已经访问了!
[root@gjp99 ~]# ll /var/log/samba/
total 16
-rw-r--r-- 1 root root 0 Aug 3 16:29 192.168.10.1.log 访问时以客户端的ip为名字进行记录
drwx------ 4 root root 4096 Aug 3 14:09 cores
-rw-r--r-- 1 root root 1688 Aug 3 16:27 nmbd.log
-rw-r--r-- 1 root root 3600 Aug 3 16:27 smbd.log
-rw-r--r-- 1 root root 151 Aug 3 16:29 xz-20120711gzjd.log 和以客户端的计算机名称进行记录
[root@gjp99 ~]# tail -f /var/log/samba/smbd.log
Denied connection from (192.168.10.31)
[2012/08/03 15:38:14, 1] smbd/process.c:process_smb(1062)
Connection denied from 192.168.10.31
[2012/08/03 15:38:14, 0] lib/access.c:check_access(327)
Denied connection from (192.168.10.31)
[2012/08/03 15:38:14, 1] smbd/process.c:process_smb(1062)
Connection denied from 192.168.10.31
[2012/08/03 16:27:32, 0] smbd/server.c:main(944)
smbd version 3.0.33-3.14.el5 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008