免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2461 | 回复: 3
打印 上一主题 下一主题

[samba] 请教samba 问题。。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-02 14:56 |只看该作者 |倒序浏览
大家好,最近小弟配了个samba +hp6L打印机。但是开启后,每隔一段时间就会报如下错误。实在是不明,请大家指点一下 。

Aug  2 13:39:23 nat smbd[7953]: [2006/08/02 13:39:23, 0] lib/util_sock.c:get_peer_addr(1000)
Aug  2 13:39:23 nat smbd[7953]:   getpeername failed. Error was Transport endpoint is not connected
Aug  2 13:39:23 nat smbd[7953]: [2006/08/02 13:39:23, 0] lib/util_sock.c:get_peer_addr(1000)
Aug  2 13:39:23 nat smbd[7953]:   getpeername failed. Error was Transport endpoint is not connected
Aug  2 13:39:23 nat smbd[7953]: [2006/08/02 13:39:23, 0] lib/util_sock.c:write_socket_data(430)
Aug  2 13:39:23 nat smbd[7953]:   write_socket_data: write failure. Error = Connection reset by peer
Aug  2 13:39:23 nat smbd[7953]: [2006/08/02 13:39:23, 0] lib/util_sock.c:write_socket(455)
Aug  2 13:39:23 nat smbd[7953]:   write_socket: Error writing 4 bytes to socket 5: ERRNO = Connection reset by peer
Aug  2 13:39:23 nat smbd[7953]: [2006/08/02 13:39:23, 0] lib/util_sock.c:send_smb(647)
Aug  2 13:39:23 nat smbd[7953]:   Error writing 4 bytes to client. -1. (Connection reset by peer)
Aug  2 13:51:55 nat sshd(pam_unix)[7962]: session opened for user root by root(uid=0)
Aug  2 14:01:01 nat crond(pam_unix)[8013]: session opened for user root by (uid=0)
Aug  2 14:01:01 nat crond(pam_unix)[8013]: session closed for user root
Aug  2 14:34:52 nat smbd[8058]: [2006/08/02 14:34:52, 0] lib/util_sock.c:get_peer_addr(1000)
Aug  2 14:34:52 nat smbd[8058]:   getpeername failed. Error was Transport endpoint is not connected
Aug  2 14:34:52 nat smbd[8058]: [2006/08/02 14:34:52, 0] lib/util_sock.c:get_peer_addr(1000)
Aug  2 14:34:52 nat smbd[8058]:   getpeername failed. Error was Transport endpoint is not connected
Aug  2 14:34:52 nat smbd[8058]: [2006/08/02 14:34:52, 0] lib/util_sock.c:write_socket_data(430)
Aug  2 14:34:52 nat smbd[8058]:   write_socket_data: write failure. Error = Connection reset by peer
Aug  2 14:34:52 nat smbd[8058]: [2006/08/02 14:34:52, 0] lib/util_sock.c:write_socket(455)
Aug  2 14:34:52 nat smbd[8058]:   write_socket: Error writing 4 bytes to socket 23: ERRNO = Connection reset by peer
Aug  2 14:34:52 nat smbd[8058]: [2006/08/02 14:34:52, 0] lib/util_sock.c:send_smb(647)
Aug  2 14:34:52 nat smbd[8058]:   Error writing 4 bytes to client. -1. (Connection reset by peer)

————————————————————————————————————————
smb.conf
[global]

   workgroup = WORKGROUP

   server string = Samba Server
   use sendfile = no
   hosts allow = 192.168.0.
   printcap name = /etc/printcap
   load printers = yes
   printing = cups
  cups options = raw
  max log size = 50
   security = user
  username map = /etc/samba/smbusers
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   dns proxy = no
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no
[homes]
   comment = Home Directories
   browseable = no
   writable = yes





[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes
   public = yes
  [root]
   path = /root
   browseable = no

论坛徽章:
0
2 [报告]
发表于 2006-08-02 15:26 |只看该作者
自己顶一下吧!!因为会沉得!!

论坛徽章:
0
3 [报告]
发表于 2006-08-03 10:42 |只看该作者
在线等待中

论坛徽章:
0
4 [报告]
发表于 2006-08-30 10:41 |只看该作者

问题已经解决

解决方法是在[global]中添加
smb ports = 445
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP