|
|
|
Samba Setup Guide for Linux
|
Samba FAQ General Questions: Q: Where do I get Samba? How do I tell if Samba is installed, or how do I upgrade my current version? A: Open a terminal window and type in smbd -V, this will tell you what Samba version is installed. As far as upgrading Samba, if you are using a rpm based Linux such as Redhat or Mandrake, or SuSe, you can download newer versions from www.rpmfind.net. For other versions, consult your documentation. Q: Why don't you show us how to use Swat or Webmin to administer Samba? A: Although Swat and Webmin are wonderful tools. They do not expose you to the true workings of the smb.conf and it's many options. Most people who use these tools, cannot even tell you where to find the smb.conf file. It is my belief that editing smb.conf manually results in a stronger and deeper understanding of Samba. Q: I can see the Samba server in network neighborhood, but when I click on it, I get the error message "network path not found" A: If you have followed the instructions correctly here, then a few possibilities would be that: 1) There is a network pc/share, but the smb protocol is being blocked from communicating with it. Now with Redhat when you do the install, there is a firewall that most people choose to install it and guess what....it blocks ports 137-139, the very same ports that the smb protocol relies on. Since I do not use Redhat, I cannot tell you how to open these ports. 2) Could be a DNS issue, which in it's own right is not a Samba issue, rather a very basic TCP/IP networking issue...you need to have a proper TCP/IP network setup before attempting to setup Samba. Q: I am still getting the an error message The network path could not be found" (notice the different wording from the above message)
A: Attempting to map a share when Samba not running.
2) Or you created a share in the smb.conf, but there is no actual Samba share on the HD. ie: [data] path = /var/data browseable = yes readonly = no This is fine, but ooops...no share in /var called data.
Q: Encrypted passwords do not work Samba, how do I edit the registry on my Windows pc to allow non-encrypted passwords? A: Samba works very well with encrypted passwords. All Windows of recent vintage with the exception of early versions of Win95 utilize encrypted passwords as default. This includes 98, NT, Win2000, XP. As far as Windows 3.1.x, I could not tell you....you may wish to upgrade these pc's. Most of us do not drive cars that are as old as Windows 3.1 Those who make the claim that encrypted passwords do not work have no basis for it, except for their own misunderstanding on how Samba/ network protocols function. Also the security implications of not having encrypted passwords is huge, considering how many pc's have NetBios exposed to the world..........Welcome to Crackers-R-US. Q: I have setup Samba as a PDC, however I got XP (Pro only, XP Home does not support domain logons) to join the Samba domain, now after rebooting, it tells me that it cannot find the domain controller.
A: You will need to edit the registry to enable XP to join a domain. I assume no responsibility for any possible damage incurred while you edit the registry, Please do a backup first.
The key that needs to be edited. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters "RequireSignOrSeal"=dword:00000001 Change dword:00000001 to dword:00000000
1) Download the reg patch from here.
Q: I keep getting "Incorrect password or unknown username" for \\mysamba\share (insert the name of your pc and share name) A: You do not have a linux and samba user and password setup. Q: Ok, now I have the proper passwords setup, I try to map a share and get error message: "The account is not authorized to log onto this station"
A: All modern (Win98, WinNT, Win2000, WinXP) use encrypted passwords for the smb protocol. Therefore Samba requires that in the smb.conf [Global] section you have There is no need/reason, whether real or imagined to use plain text passwords with the above operating systems. Q: I am running Windows XP ( both Home and Pro editions) Windows Explorer freezes, losses mapped drives, slow file copying. You know....normal Windows behaviour :-)
A: Ensure that you have a proper DNS, TCP/IP setup. Meaning you can ping all your pc's by name and IP address.
2) Disable the web client service in XP, reboot pc, you should notice a big performance increase.
Additional info on the Web Client service. Courtesy of: http://www.theeldergeek.com/webclient.htm
Service Name: WebClient Process Name: svchost.exe Default Settings: XP Home: Automatic XP Pro: Automatic
Microsoft Service Description Enables Windows-based programs to create, access, and modify Internet-based files. If this service is stopped, these functions will not be available. If this service is disabled, any services that explicitly depend on it will fail to start.
Dependencies: WebDav Client Redirector
Real World Description: Truthfully, I haven't been able to locate anyone that can tell me whether this service is needed or not. I've had it Disabled, Manual, and Automatic with no conclusive evidence. It's a crapshoot.
Is this service needed? Possibly Recommended Setting: Manual
Here's the skinny on the WebClient Service on Windows XP:
Real World Description: The WebClient service provides WebDAV (Web Distributed Authoring and Versioning) integration in the Explorer shell. It makes it possible to use "web folders" and to browse the file systems of web servers (not unlike FTP, but better -- adds secure password authentication and file locking) within an Explorer window. WebDAV is an extension of the HTTP/1.1 protocol. It is not needed. You can also use Internet Explorer 5 and above for this functionality (File > Open > enter URL and check the "Open as Web Folder" checkbox), as well as a host of other downloadable tools that implement WebDAV.
Q: I have setup Samba as a PDC with roaming profiles, however loging on/off takes forever ( WindowsNT, 2000, XP Pro only), what is causing the delay? A: Do not have roaming profiles is the easiest answer.. 1) If you have roaming profiles, try to keep large multi MB files out your profile. When you log on/off the PDC these files get copied from Samba and back to your pc and vice versa. 2) Set Internet Explorer to empty temporary internet files folder when browser is closed. Right click on IE icon, click properties, click on the advanced tab, scroll down and uncheck "empty temporary internet files folder when browser is closed" |