Cannot access Windows 2003 shares from Samba/smb4k
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot access Windows 2003 shares from Samba/smb4k
Hi,
I am running KDE 3.5.7 on Gentoo 2007.0 and I am having issues accessing my shares on a Windows 2003 SP2 machine. I can see the shares if I manually type in the address in konqueror with the IP, such as:
smb://192.168.1.1/share
However, if I try to browse Remote Places in Konqueror, I get an error when I click on the workgroup name that says Timeout on server WORKGROUP.
I have Lisa installed and running properly, but I'm not sure how to use that.
I'm trying to use Smb4k, which does see my Windows 2003 machine on the network. However, when I click on it I get an Access Denied message and then it asks me for a password. After typing my password, nothing happens. If I click the plus icon next to the 2003 machine in Smb4k, nothing happens. The computer entry is also highlighted blue for some reason in Smb4k.
In your first message, the "Timeout on server WORKGROUP" message doesn't make sense unless I am misreading it. If "WORKGROUP" is the name of a server that doesn't sound right. Make sure that your smb.conf file has "workgroup = SLO" in the global part.
The first post indicates a possible name service switch problem (with winbind or wins) while the second indicates a permission problem. You didn't indicate what kind of password backend that your samba server is using. It probably is smbpasswd, so use the smbpasswd program to add the same username and password that the Win2000 host uses. Every windows user needs to be mapped to Linux. The "Samba 3 Howto & Reference" and "Samba 3 by Example" books will provide more detailed information. These books will be supplied by either the samba package or a samba-doc package. Look in /usr/share/doc/samba-<version>/ or /usr/share/doc/packages/samba/ for these books. You can also download them from the samba.org website.
Also check your firewall. The normal ports used are 127-129 tcp/udp. Windows 95/98 used broadcasts to resolve hostnames. Windows2000 & XP might be using port 445 instead. Make sure these ports are open in your firewall (on the samba host). The netbios over tcp setting in the win2000 host may determine which ports are used.
You might want to check if you have the libnss_winbind.so library installed. It should be installed along with samba. Also check your /etc/nsswitch.conf file. On the "hosts: ..." line add "winbind" after "files". See the manpages for winbind, nsswitch.conf and libns_winbind.
If you have the "wins support = yes" setting on your samba server, then install libns_wins and use "wins" in /etc/nsswitch.conf instead of "winbind". The winbind daemon will provide a wins service. With samba you can only have one wins server. You would supply the wins address to the DHCP server (or dhcp router setup) or manually add the wins address in each host's network configuration. You would do this if you have a large LAN and wished to reduce network traffic due by using wins instead of broadcasts, or if you needed to locate shares across a subnet.
I forgot to mention to try entering "smb:/" in the konqueror file manager. I don't know if Lisa works with networking for win2000 or XP. You may need to configure lisa if you plan on using it but I've never had luck with Lisa & XPs. Using smb:/ in konqueror is very convenient. You can have an smb://... share on a left panel and a local directory in a right hand pane and transfer files that way.
In your first message, the "Timeout on server WORKGROUP" message doesn't make sense unless I am misreading it. If "WORKGROUP" is the name of a server that doesn't sound right. Make sure that your smb.conf file has "workgroup = SLO" in the global part.
Sorry about that, I do have "workgroup = SLO" set, I used the generic WORKGROUP by accident as an example.
Quote:
use the smbpasswd program to add the same username and password that the Win2000 host uses.
I have already set this for the username.
Quote:
Also check your firewall. The normal ports used are 127-129 tcp/udp. Windows 95/98 used broadcasts to resolve hostnames. Windows2000 & XP might be using port 445 instead. Make sure these ports are open in your firewall (on the samba host). The netbios over tcp setting in the win2000 host may determine which ports are used.
Where are the firewall settings on my Samba host? I really wasn't planning on using shares from my Gentoo box (i.e. a server), I just want to view the workgroup and access the windows shares.
Quote:
You might want to check if you have the libnss_winbind.so library installed. It should be installed along with samba. Also check your /etc/nsswitch.conf file. On the "hosts: ..." line add "winbind" after "files". See the manpages for winbind, nsswitch.conf and libns_winbind.
I set this and I had no difference. I will restart to be sure.
One new development, if I type the following as root:
I can mount the share and rwx anything. However, as a the user (mstanisz), which is both on my linux box and the windows 2003 machine, I can mount it, but then I have no permissions.
I really wasn't planning on using shares from my Gentoo box (i.e. a server), I just want to view the workgroup and access the windows shares.
Quote:
From smbd manpage:
The default ports are 139 (used for SMB over NetBIOS over TCP) and port 445 (used for plain SMB over TCP).
From nmbd manpage:
-p <UDP port number>
UDP port number is a positive integer value. This option changes the default UDP port number (normally 137) that nmbd responds to name queries on.
From /etc/services:
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service
Samba needs to be able to receive announcements from other hosts on the network, so the ports need to be open. Often a distro's samba config program will open the ports for you.
For samba shares, you need to consider the permissions of the directory begin shared. Does the user have full access to the directory. Is the share offered with full access to the user or only read-only.
For mounting smb shares, I would put an entry in /etc/fstab with the "user" option, and use a credentials file ( cred= option) and use the cifs filesystem type instead of smb. The smbfs is depreciated and may not be supported by your kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.