milend
2003-Mar-14 22:20 UTC
[Samba] cannot get a list of Win2000/NT shares using SMBCLIENT -L with anonymous login
Hi folks, From my RedHat Linux box Im using smbclient L to obtain the list of shares on a particular computer in the network. I use guest as user name or just omit the user name. I can get the list of shares on every single Linux or Win9X machines in the network but I cannot obtain the list of shares on Win2000 and Win NT machines. Here is what I tried: [user1@linuxbox user1]$ smbclient -L WIN2KHOST -Uguest or [user1@linuxbox user1]$ smbclient -L WIN2KHOST without password. The result is Error returning browse list: NT_STATUS_ACCESS_DENIED Please see the detailed log bellow. If I use smbclient L with username and password then I DO get a list of shares on Win2000 and WinNT machines. Why I cant get the list of all shares on Win2000 and WinNT machines? Windows2000/NT machines are able to browse each others why samba cant? Thank you for the help in advance! Best regards: Milen --------------------------------------------------------------------------- [user1@linuxbox user1]$ smbclient -L WIN2KHOST added interface ip=192.168.5.80 bcast=192.168.5.255 nmask=255.255.255.0 Password: Anonymous login successful Domain=[TECH] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Server Comment --------- ------- Workgroup Master --------- ------- [user1@linuxbox user1]$ smbclient -L WIN2KHOST -Uuser1%password added interface ip=192.168.5.80 bcast=192.168.5.255 nmask=255.255.255.0 Domain=[TECH] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC Remote IPC print$ Disk Printer Drivers C Disk DISK_C G$ Disk Default share G Disk DISK_G ADMIN$ Disk Remote Admin C$ Disk Default share Server Comment --------- ------- Workgroup Master --------- ------- [user1@linuxbox user1]$
Hi, I have Linux box with Samba as PDC and mixed network enviroment - Linux and windows machines. Windows boxes can browse and access all Linux shares. Linux boxes can browse only Win95/98 shares. When I try to obtain a list of shares on Win2000/NT machine using smbclient -L (without user name and password!!!) I get the following error: NT_STATUS_ACCESS_DENIED. The same command smbclient -L (without user name and password!!!) works fine for Win95/98 and shows me all theirs shared resources Because of this Linux LAN browsers like Nautilus, LISA, gnomba, xSMBrowser don't work. Maybe the problem is in my PDC (my samba PDC)? Does anyone know what could be the problem? What I can do about Anonymous browsing Win200/NT boxes? How I can get rid of error message NT_STATUS_ACCESS_DENIED? Thank you very much for you help in advance! Milen P.S.: Here is the output of smbclient -L command --------------------------------------------------------------------------- [user1@linuxbox user1]$ smbclient -L WIN2KHOST added interface ip=192.168.5.80 bcast=192.168.5.255 nmask=255.255.255.0 Password: Anonymous login successful Domain=[TECH] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Server Comment --------- ------- Workgroup Master --------- -------