当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 更换ip地址后无法连接samba
帖子发表于 : 2015-10-01 11:48 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
重现步骤

1. 连接有线,ip 为 192.168.1.100,Thunar 中打开 smb://192.168.1.103,正常
2. Thunar 中 umount smb://192.168.1.103
3. 断开有线,连接无线,ip 更换为 192.168.1.101
4. Thunar 中无法打开 smb://192.168.1.103

日志:
代码:
Oct 01 11:45:04 debian org.gtk.vfs.Daemon[1307]: ### SMB-BROWSE: update_cache - updating...
Oct 01 11:45:04 debian org.gtk.vfs.Daemon[1307]: parsed path: fname='smb://192.168.1.103/' server='192.168.1.103' share='' path='' options=''
Oct 01 11:45:04 debian org.gtk.vfs.Daemon[1307]: SMBC_check_options(): server='192.168.1.103' share='' path='' options=''
Oct 01 11:45:04 debian org.gtk.vfs.Daemon[1307]: ### SMB-BROWSE: looking up cached server '192.168.1.103'\'IPC$', user 'WORKGROUP';'blah'
Oct 01 11:45:04 debian org.gtk.vfs.Daemon[1307]: ### SMB-BROWSE:   returning 0x7fcbfc011bb0
Oct 01 11:45:24 debian org.gtk.vfs.Daemon[1307]: net_share_enum_rpc pipe open fail!
Oct 01 11:45:44 debian org.gtk.vfs.Daemon[1307]: NetShareEnum failed


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 更换ip地址后无法连接samba
帖子发表于 : 2015-10-01 17:24 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
http://serverfault.com/questions/369608/how-to-empty-samba-network-cache-on-linux-server

引用:
代码:
mount -t cifs -o username=user,password=pass\!word //192.168.XX.XX/someshare /mnt/localdir

After this procedure, on my machine the cache was cleared, so I could make umount and mount via the fstab.

Alternatively, the cache is active until server restart, and after the new credentials will be applied via fstab configuration.


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译