- 论坛徽章:
- 0
|
原来我用的网络环境没有划分vlan,其中一台ubuntu 8.04 server设置了samba做文件服务器,win客户端映射samba的共享目录为Z盘,使用了近一年也没什么大问题。
前不久我把交换机划分了两个vlan,两个vlan不通讯,win客户端和samba文件服务器都是在同一个vlan里,这样使用没几天就出现问题。
在win客户端里双击打开Z盘时,弹出错误:“本地设备名已在使用中。此连接尚未还原。”
出现这个提示没有规则,有些时候第一次就会出现,有些时候是在用了很多次才出现。
出现提示后,继续双击Z盘,最终也能打开Z盘,但是次数没有规律,有的时候第二次就能打开,而有些时候要十多次才能打开。
以下面是日志,我在是10:18:20左右双击Z盘弹出错误提示的。
- [2009/05/09 10:17:57, 0] printing/print_cups.c:cups_connect(69)
- Unable to connect to CUPS server localhost:631 - Connection refused
- [2009/05/09 10:17:57, 0] printing/print_cups.c:cups_connect(69)
- Unable to connect to CUPS server localhost:631 - Connection refused
- [2009/05/09 10:18:50, 0] lib/util_sec.c:set_effective_uid(205)
- setresuid failed with EAGAIN. uid(1015) might be over its NPROC limit
- [2009/05/09 10:18:50, 0] lib/util_sec.c:assert_uid(101)
- Failed to set uid privileges to (-1,1015) now set to (0,0)
- [2009/05/09 10:18:50, 0] lib/util.c:smb_panic(1633)
- PANIC (pid 8602): failed to set uid
- [2009/05/09 10:18:50, 0] lib/util.c:log_stack_trace(1737)
- BACKTRACE: 21 stack frames:
- #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x613b4c]
- #1 /usr/sbin/smbd(smb_panic+0x43) [0x613c33]
- #2 /usr/sbin/smbd [0x618cf1]
- #3 /usr/sbin/smbd [0x4ba5ae]
- #4 /usr/sbin/smbd(pop_sec_ctx+0x96) [0x4ba726]
- #5 /usr/sbin/smbd(unbecome_root+0x9) [0x4afef9]
- #6 /usr/sbin/smbd(gid_to_sid+0x168) [0x5d36e8]
- #7 /usr/sbin/smbd [0x4c18e0]
- #8 /usr/sbin/smbd(get_nt_acl+0xc8d) [0x4c4b9d]
- #9 /usr/sbin/smbd(is_visible_file+0x26e) [0x46e09e]
- #10 /usr/sbin/smbd [0x46e620]
- #11 /usr/sbin/smbd(dptr_ReadDirName+0x54) [0x46e694]
- #12 /usr/sbin/smbd [0x4a54e4]
- #13 /usr/sbin/smbd [0x4a8b13]
- #14 /usr/sbin/smbd(handle_trans2+0x1be) [0x4a92ae]
- #15 /usr/sbin/smbd(reply_trans2+0x6ea) [0x4afc6a]
- #16 /usr/sbin/smbd [0x4c87ce]
- #17 /usr/sbin/smbd(smbd_process+0x7e2) [0x4c9bc2]
- #18 /usr/sbin/smbd(main+0x8cd) [0x6c5fad]
- #19 /lib/libc.so.6(__libc_start_main+0xf4) [0x7feb68bd31c4]
- #20 /usr/sbin/smbd [0x45a899]
- [2009/05/09 10:18:50, 0] lib/util.c:smb_panic(1638)
- smb_panic(): calling panic action [/usr/share/samba/panic-action 8602]
- [2009/05/09 10:18:50, 0] lib/util.c:smb_panic(1646)
- smb_panic(): action returned status 0
- [2009/05/09 10:18:50, 0] lib/fault.c:dump_core(181)
- dumping core in /var/log/samba/cores/smbd
复制代码
配置
- [global]
- display charset = UTF-8
- unix charset = UTF-8
- dos charset = cp936
- panic action = /usr/share/samba/panic-action %d
- security = user
- username map = /etc/samba/smbusers
- encrypt passwords = true
- passdb backend = tdbsam
- obey pam restrictions = yes
- invalid users = root
- unix password sync = yes
- passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
- pam password change = yes
- load printers = no
- [FS]
- path = /data/dbf
- writable = yes
- valid users = @OF,@FA,@CT,@WH,@DC,@QC,@HR,@MK,@OP,@BC
- create mask = 0777
- directory mask = 0777
- available = yes
- browseable = yes
- hide unreadable = yes
复制代码
[ 本帖最后由 yuzifu 于 2009-5-9 10:56 编辑 ] |
|