I typed smbtree -1 and was asked to type the password. After typing the password, I get result like this: MSHOME \\ZHANGYB zhangyb \\WWW-PC \\WWW-PC\C$ 默认共享 \\WWW-PC\ftp (I) \\WWW-PC\H$ 默认共享 \\WWW-PC\ADMIN$ 远程管理 \\WWW-PC\F$ 默认共享 \\WWW-PC\hpLaserJ hp LaserJet 1010 \\WWW-PC\G$ 默认共享 \\WWW-PC\I$ 默认共享 \\WWW-PC\print$ 打印机驱动程序 \\WWW-PC\D$ 默认共享 \\WWW-PC\IPC$ 远程 IPC \\WWW-PC\E$ 默认共享 \\NLP-C61871EFB14 huangshujian's computer \\NLP-C61871EFB14\C$ 默认共享 \\NLP-C61871EFB14\ADMIN$ 远程管理 \\NLP-C61871EFB14\F$ 默认共享 \\NLP-C61871EFB14\G$ 默认共享 \\NLP-C61871EFB14\D$ 默认共享 \\NLP-C61871EFB14\IPC$ 远程 IPC \\NLP-C61871EFB14\E$ 默认共享 \\NJUSDP njusdp \\NJUSDP\SharedDocs \\NJUSDP\IPC$ 远程 IPC \\EAAEBED67E3948A \\EAAEBED67E3948A\打印机 HP LaserJet 1020 \\EAAEBED67E3948A\SharedDocs \\EAAEBED67E3948A\print$ 打印机驱动程序 \\EAAEBED67E3948A\IPC$ 远程 IPC \\BIPING-DESKTOP biping-desktop server (Samba, Ubuntu) \\BIPING-DESKTOP\PDF PDF \\BIPING-DESKTOP\print$ Printer Drivers \\BIPING-DESKTOP\IPC$ IPC Service (biping-desktop server (Samba, Ubuntu)) where WWW-PC is the windows system where our printer is shared. what should I do to modify the cups configuration to make it work? On Sat, Jan 9, 2010 at 8:43 PM, Jeroen Op 't Eynde <jeroen@xxxxxxxxxxxx>wrote: > On Sat, 09 Jan 2010 08:43:03 +0100, Weiwei Wang <ww.wang.cs@xxxxxxxxx> > wrote: > > I read the wiki guide and do as what is told. However, I always >> receive this messge: >> Connection failed: NT_STATUS_BAD_NETWORK_NAME >> ... >> >> DeviceURI smb://elegate:jessica@172.16.65.79/print$/ >> ... >> >> And I checked that the printer in the windows system is share with the >> name >> hpLaserJ, however when I connect it with smbclient // >> 172.16.65.79/hpLaserJ, >> i receive NT_STATUS_ACCESS_DENIED >> ... >> > > Use smbtree to view your shares so you get a proper address. > > 'smbtree -N' to see if you can access it without password. > 'smbrree --user=USERNAME' to use your preferred username > > > cups and samba are both definitely running. >> > > You don't need to run smbd too access the shares, at least I don't have > too. > > > -- > Jeroen Op 't Eynde > jeroen@xxxxxxxxxxxx > http://xprsyrslf.be > > How to set up a cheap professional website @ XprsYrslf.be > -- Weiwei Wang Alex Wang 王巍巍 Room 403, Mengmin Wei Building Computer Science Department Gulou Campus of Nanjing University Nanjing, P.R.China, 210093 Homepage: http://cs.nju.edu.cn/rl/weiweiwang