![]() |
OpenSlug.GettingStartedWithSamba HistoryHide minor edits - Show changes to markup November 29, 2008, at 03:16 PM
by -- Minor Changes
Changed lines 256-257 from:
Errors accesing files with clients running linux kernel >=2.6.26to:
Errors accessing files with clients running linux kernel >=2.6.26Changed lines 260-261 from:
Apparently there's a bug in samba 3.0.23 that's triggered by kernels >= 2.6.26. For background information visit Ubuntu Launchpad. to:
Apparently there's a bug in samba 3.0.23 that's triggered by kernels >= 2.6.26. For background information visit https://bugs.launchpad.net/ubuntu/+source/samba/+bug/286828. November 29, 2008, at 03:14 PM
by -- Errors accesing files with clients running linux kernel >=2.6.26
Changed lines 254-261 from:
No windows reboot needed, as far as I know. If all fails, try " to:
No windows reboot needed, as far as I know. If all fails, try " Errors accesing files with clients running linux kernel >=2.6.26If you get errors like " Apparently there's a bug in samba 3.0.23 that's triggered by kernels >= 2.6.26. For background information visit Ubuntu Launchpad. September 25, 2008, at 05:25 AM
by -- minor updates
Added lines 59-60:
NOTE: Swat is no longer available in ipkg, and it appears to be installed by default in Samba 3+ anyway. It doesn't just work out of the box. It may only need the xinetd edits below. Added line 85:
NOTE: This is a Samba 2 config file. Won't work with Samba 3. See http://www.nslu2-linux.org/wiki/Optware/Samba?from=Unslung.Samba May 07, 2008, at 11:17 AM
by -- Added \"Transfer Speeds with Many Files in the Same Directory\"
Added lines 133-144:
Transfer Speeds with Many Files in the Same Directory(Well, not really transfer speeds, but file lookup speeds.) If you have 100,000 files in a directory, Samba is very slow... and that's on a regular server. On the NSLU2, with its embedded processor, it can choke on as few as several thousand files in a directory. There is a way to speed things up: turn off case sensitivity in Samba, and rename all your files to be upper- or lower-case. For instructions and more info, see http://www.samba.org/samba/docs/man/Samba-Guide/HA.html#id403899 (An advanced hack: if your program expects a file with a certain name, and can't find the equivalent upper- or lower-case file, just create a zero-size file with the expected name. For example, if your program is looking for "Info.plist" and you only have "info.plist", run a command like "touch Info.plist". Your program will see the zero-size file, try to access it, and Samba will give it the "real" file instead. The same trick works for directories; just create an empty directory instead of a zero-size file.) For any Mac users storing Time Machine backups on their NSLU2, take notice! Time Machine images contain many thousands of small files. Before this trick, backups took hours and the Samba process was taking 95%+ of the CPU. After, backups take minutes and Samba uses closer to 35%. December 22, 2007, at 11:03 PM
by -- removed previous incorrect update
Changed lines 59-60 from:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again to:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again December 22, 2007, at 10:47 PM
by -- Noted that \"ipkg install swat\" cannot find package.
Changed lines 59-60 from:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again to:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again November 14, 2007, at 02:28 PM
by -- formatting
Changed lines 221-222 from:
So either : mount -t smbfs //server/share /mountpoint -o lfs other-options to:
So either: mount -t smbfs //server/share /mountpoint -o lfs other-options Changed lines 226-227 from:
mount -t cifs //server/share /mountpoint -o options to:
mount -t cifs //server/share /mountpoint -o options November 14, 2007, at 02:28 PM
by -- formatting
Changed line 232 from:
to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LmCompatibilityLevel - 1 means communication via LM and NTLM, 3 means via NTLMv2
November 14, 2007, at 02:27 PM
by -- formatting
Changed lines 228-236 from:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fail: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming your slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries in regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) to:
If you think you have set up everything correctly in If all that works but connections from Windows fail: does " HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LmCompatibilityLevel - 1 means communication via LM and NTLM, 3 means via NTLMv2?
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\forceguest - 0 means simple file sharing, 1 deactivates this, which is what you probably want (also, you can deactivate this in folder viewing properties and then use that settings for all folders)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\enablesecuritysignature
No windows reboot needed, as far as I know. If all fails, try " November 12, 2007, at 06:14 PM
by --
Changed line 228 from:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fail: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries in regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) to:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fail: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming your slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries in regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) November 12, 2007, at 06:13 PM
by --
Changed line 228 from:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) to:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fail: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries in regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) November 12, 2007, at 06:11 PM
by -- don\'t know why some words become links, please fix! thanks!
Changed line 228 from:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that's where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a [share] and user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) to:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that ip mask captures where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a share named [share] im smb.conf and want a user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) November 12, 2007, at 06:08 PM
by --
Changed line 228 from:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global]. Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on you slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a [share] and user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) to:
If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global] (assuming that's where both slug and windows pc reside). Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on your slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a [share] and user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) November 12, 2007, at 06:07 PM
by -- windows being soooo nasty
Changed lines 224-228 from:
mount -t cifs //server/share /mountpoint -o options to:
mount -t cifs //server/share /mountpoint -o options Fixing access denied (especially when connecting to smbd via Windows)If you think you have set up everything correctly in /opt/etc/smb.conf but fail to connect to your samba server, try the following: put a line like "hosts allow = 192.168.1" in your smb.conf under [global]. Under individual shares, specify individual users not groups. Are all paths correct, did you use password encryption, do the paths of your shares exist, did you "useradd foo" and "smbpasswd -a foo"? Does "smbclient -L localhost -U foo" on you slug work? Does "smbclient //nsl/share -U foo" work, too? (Assuming you have a [share] and user foo) If all that works but connections from windows fails: does "NET USE z: \\192.168.1.100\share /USER:foo" work (with your windows workstation in the same workgroup as specified in smb.conf, assuming you slug ist 192.168.1.100? (If it works with ip but not with \\nsl\share, check lmhosts settings). Then be very careful (!) and check the following registry entries there: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Control\Lsa\LmCompatibilityLevel? (1 means communication via LM and NTLM, 3 means via NTLMv2?), HKEY_LOCAL_MACHINE\System\CurrentControlSet?\Control\LSA\forceguest (0 means simple file sharing, 1 deactivates this, which is what you probably want) (also, you can deactivate this in folder viewing properties and then use that settings for all folders), HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet?\Services\lanmanserver\parameters\enablesecuritysignature. (No windows reboot needed, as far as I know.) (If all fails, try "ipkg remove samba" and "ipkg install samba2" or the other way round.) October 06, 2007, at 12:07 AM
by -- removed false wikilinks
Changed lines 135-136 from:
I had a day of grief before getting samba working. My WinXP? box would see the samba share but be unable to connect to it, returning messages like "you don't have permission". I tried all kinds of smb.conf permutations. The culprit was the popular ZoneAlarm? firewall software on the windows machine. Open up zonealarm, click on "firewall", then "add" your slug's IP address (usually 192.168.1.77) to the trusted zone. Voila, problem solved. to:
I had a day of grief before getting samba working. My Windows XP box would see the samba share but be unable to connect to it, returning messages like "you don't have permission". I tried all kinds of smb.conf permutations. The culprit was the popular ZoneAlarm firewall software on the windows machine. Open up zonealarm, click on "firewall", then "add" your slug's IP address (usually 192.168.1.77) to the trusted zone. Voila, problem solved. Changed lines 145-146 from:
Also note that Windows XP SP2? clients can suffer a BSoD (Blue Screen of Death) every time you login if you configure Samba3 to use roaming profiles. The example shown ensures that there are no profile directories and no Home drives mapped. This configuration is known to stop XP SP2? systems from crashing. to:
Also note that Windows XP SP2 clients can suffer a BSoD (Blue Screen of Death) every time you login if you configure Samba3 to use roaming profiles. The example shown ensures that there are no profile directories and no Home drives mapped. This configuration is known to stop XP SP2 systems from crashing. October 05, 2007, at 04:31 PM
by -- Troubleshooting
Added lines 137-140:
Host nameI’ve experienced that Windows (XP) refuses to connect to the samba server if your device name contains a “/”, in my case “Nslu2/Openslug”. If you have an unexplainable connection issue and Windows report “This parameter is incorrect”, try naming renaming your device. This can easily be done by using the ‘turnup init’ command. Don’t forget to ‘turnup preserve’ afterwards. February 01, 2007, at 05:17 PM
by -- link formatting
Changed lines 59-60 from:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again to:
Especially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again February 01, 2007, at 04:04 AM
by -- I wish preview worked!
Changed lines 19-20 from:
If you receive:\\ ERROR: Cannot satisfy the following dependencies for samba:
to:
If you receive: Changed lines 22-24 from:
Nothing to be done An error ocurred, return value: 1. to:
Nothing to be done An error ocurred, return value: 1. February 01, 2007, at 04:04 AM
by --
Changed lines 19-24 from:
If you receive: ERROR: Cannot satisfy the following dependencies for samba: openldap-libs Nothing to be done An error ocurred, return value: 1. to:
If you receive:\\ ERROR: Cannot satisfy the following dependencies for samba:
openldap-libs
Nothing to be done
An error ocurred, return value: 1.
February 01, 2007, at 04:03 AM
by --
Changed lines 7-11 from:
These are detailed below. to:
February 01, 2007, at 04:02 AM
by -- Clarified portions of the beginning of the article
Deleted lines 2-4:
Once you have OpenSlug up and running, probably the first thing you want to do is install and configure samba to allow file sharing. If you are not a Samba wizard this may take quite some time. This HowTo aims at providing some info on how to achieve this. Changed lines 4-6 from:
to:
Changed lines 12-16 from:
Installing sambaInstalling Samba is pretty straightforward. Just run It is possible that the install of samba will fail due to a missing dependency: to:
Installing SambaInstalling Samba is pretty straightforward:
If you receive: Changed lines 24-35 from:
In this case, prior to performing an Install unslung-feeds (seems to add an ipkg repository to the ipkg configuration with natively compiled packages). After that install openldap-libs. You should now do an
At this point, you should now be able to do the The ipkg install comand will install the latest version of Samba. After installing Samba needs to be configured. All configuration data resides in /etc/samba/smb.conf. If you are good in Samba you might be able to edit the default file by yourself. If not you might want to start with the configuration file that is given in the last section. You can just move away the existing smb.conf file and replace it with the content as specified below. to:
Do the following:
Configuring SambaAll configuration data resides in /etc/samba/smb.conf. If you are good in Samba you might be able to edit the default file by yourself. If not you might want to start with the configuration file that is given in the last section. You can just move away the existing smb.conf file and replace it with the content as specified below. November 09, 2006, at 11:44 PM
by -- duplicate words
Changed lines 16-17 from:
Installing Samba is pretty straightforward. Just run to:
Installing Samba is pretty straightforward. Just run September 12, 2006, at 08:56 PM
by -- LFS and smbfs
Changed lines 209-212 from:
==== When mounting smbfs the default does not include large file support, which limits files to less than 2 gigs. Using the lfs option will include large file support. Google "smbfs lfs option", since it seems to be missing to:
File size >= 2G and remote smbfs mountWhen mounting smbfs some linux distro by default does not include large file support, which limits files to less than 2 gigs. Using the lfs option will include large file support. Google "smbfs lfs option", since it seems to be missing September 12, 2006, at 08:40 PM
by -- Added smbfs -o lfs
Changed lines 207-222 from:
(:tableend:) to:
(:tableend:) ==== When mounting smbfs the default does not include large file support, which limits files to less than 2 gigs. Using the lfs option will include large file support. Google "smbfs lfs option", since it seems to be missing from most documentation. A better option is to use cifs, if it's supported by your kernel/distribution/version. When mounting cifs, large files are supported by default. So either : mount -t smbfs //server/share /mountpoint -o lfs other-options or mount -t cifs //server/share /mountpoint -o options July 28, 2006, at 01:23 PM
by -- Minor mark-up change
Changed line 39 from:
to:
May 01, 2006, at 08:44 AM
by --
Changed lines 81-82 from:
After doing this you should be able to surf to port 901 and get the swat web interface. to:
After doing this you should restart xinetd with /etc/init.d/xinetd restart and then be able to surf to port 901 and get the swat web interface. February 25, 2006, at 02:00 PM
by -- Changed guest user creation to use smbpasswd instead of some copy-paste (which did not work for me)
Changed lines 44-54 from:
Then make sure that the user guest exists in your password file (otherwise type: And finally add the user guest in [In my install, the smbpasswd file was found in directory /etc/samba/private/ Note the password file in which to locate the guest UID is /etc/passwd] to:
Users must be added to the smbpasswd file in order to get access to SMB shares, but only users that exist in your system file may be used by Samba (users are listed in The corresponding samba user can now be created using February 24, 2006, at 02:06 AM
by -- handle issue where openldap-libs is missing
Changed lines 16-34 from:
Installing Samba is pretty straigtforward. Just run to:
Installing Samba is pretty straightforward. Just run It is possible that the install of samba will fail due to a missing dependency: ERROR: Cannot satisfy the following dependencies for samba: openldap-libs Nothing to be done An error ocurred, return value: 1. In this case, prior to performing an Install unslung-feeds (seems to add an ipkg repository to the ipkg configuration with natively compiled packages). After that install openldap-libs. You should now do an
At this point, you should now be able to do the February 12, 2006, at 04:48 AM
by --
Added lines 37-39:
Also note that /var/lock needs to have its permissions changed to 0755, use the following command January 28, 2006, at 10:35 AM
by -- Windows firewall software advice.
Added lines 115-118:
Windows FirewallsI had a day of grief before getting samba working. My WinXP? box would see the samba share but be unable to connect to it, returning messages like "you don't have permission". I tried all kinds of smb.conf permutations. The culprit was the popular ZoneAlarm? firewall software on the windows machine. Open up zonealarm, click on "firewall", then "add" your slug's IP address (usually 192.168.1.77) to the trusted zone. Voila, problem solved. Changed lines 121-122 from:
The following customisations to the above configuration file will set your Samba server up as an NT 4.0 Primary Domain Controller. The stuff you really need is the script mappings at the bottom, because adding and removing computers from the domain requires that Samba can add and delete user accounts in Linux. The default mappings provided in the example smb.conf file assume that you have the full user utilities - however, since OpenSlug uses BusyBox and TinyLogin, you don't get these unless you install them yourself. Note that the "delete user from group" script is inactive, because that task is not an available option in the aforementioned utilities in BusyBox and TinyLogin. to:
The following customisations to the above configuration file will set your Samba server up as an NT 4.0 Primary Domain Controller. Most home users will not need to do this, however if you want a Domain Controller then read on. The stuff you really need is the script mappings at the bottom, because adding and removing computers from the domain requires that Samba can add and delete user accounts in Linux. The default mappings provided in the example smb.conf file assume that you have the full user utilities - however, since OpenSlug uses BusyBox and TinyLogin, you don't get these unless you install them yourself. Note that the "delete user from group" script is inactive, because that task is not an available option in the aforementioned utilities in BusyBox and TinyLogin. January 26, 2006, at 09:46 PM
by -- Clarifying some directory & file names.
Added lines 35-36:
[In my install, the smbpasswd file was found in directory /etc/samba/private/ Note the password file in which to locate the guest UID is /etc/passwd] December 14, 2005, at 01:59 PM
by -- Added help for unrecognized package names
Changed lines 16-18 from:
Installing Samba is pretty straigtforward. Just run to:
Installing Samba is pretty straigtforward. Just run September 29, 2005, at 03:35 AM
by -- Added comment about performance
Added lines 104-112:
Transfer SpeedsI found that I got a MUCH better transfer speed when I had the following settings in /etc/samba/smb.conf [global] socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=65535 SO_RCVBUF=65535 There is something similar in the example file above, but its easily missed. September 23, 2005, at 04:08 AM
by --
Added lines 11-12:
September 23, 2005, at 04:06 AM
by --
Added lines 129-170:
(:tableend:) You also need to map UNIX user accounts to SMB accounts, and map the usual Windows groups into UNIX groups. Add SMB users(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) smbpasswd -a <UNIX username> adduser Administrator smbpasswd -a Administrator (:tableend:) Assign an account to be the Domain Administrator(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) net getlocalsid pdbedit -U <Your SID>-500 -u Administrator -r (:tableend:) Don't worry if you get any errors with "records" from the above command. It should still work. Create the UNIX group "ntadmins" and then map this (and other groups) to SMB groups.(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) addgroup ntadmins net groupmap modify ntgroup="Domain Admins" unixgroup=ntadmins net groupmap modify ntgroup="Domain Users" unixgroup=users net groupmap modify ntgroup="Domain Guests" unixgroup=nobody (:tableend:) Create your custom groups(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) addgroup mygroup net groupmap add ntgroup="Mygroup" unixgroup=mygroup type=d September 23, 2005, at 03:44 AM
by --
Added lines 100-128:
(:tableend:) Sample Samba Domain Controller Configuration FileThe following customisations to the above configuration file will set your Samba server up as an NT 4.0 Primary Domain Controller. The stuff you really need is the script mappings at the bottom, because adding and removing computers from the domain requires that Samba can add and delete user accounts in Linux. The default mappings provided in the example smb.conf file assume that you have the full user utilities - however, since OpenSlug uses BusyBox and TinyLogin, you don't get these unless you install them yourself. Note that the "delete user from group" script is inactive, because that task is not an available option in the aforementioned utilities in BusyBox and TinyLogin. Also note that Windows XP SP2? clients can suffer a BSoD (Blue Screen of Death) every time you login if you configure Samba3 to use roaming profiles. The example shown ensures that there are no profile directories and no Home drives mapped. This configuration is known to stop XP SP2? systems from crashing. (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) [global] security = user passdb backend = tdbsam domain master = yes preferred master = yes domain logons = yes logon home = logon path = wins support = yes dns proxy = no add user script = /bin/adduser %u add group script = /bin/addgroup %g add machine script = /bin/adduser -g machines -s /bin/false %u delete user script = /bin/deluser %u ; delete user from group script = /bin/deluser %u %g delete group script = /bin/delgroup %g September 05, 2005, at 11:40 AM
by -- creation
Added lines 1-100:
Getting Started With SambaOnce you have OpenSlug up and running, probably the first thing you want to do is install and configure samba to allow file sharing. If you are not a Samba wizard this may take quite some time. This HowTo aims at providing some info on how to achieve this. The whole process described below consists of the following steps:
These are detailed below. Installing sambaInstalling Samba is pretty straigtforward. Just run The configuration file below assumes you want to share Next you should create the directory Then make sure that the user guest exists in your password file (otherwise type: And finally add the user guest in Installing xinetdXinetd is needed to allow swat to run properly. Just run Installing swatEspecially if you are not familiar with configuring Samba you want to install swat. Swat is a web based interface to the myriad of Samba configuration parameters. Again In order to launch swat you'll need to create a file called
service swat
{
disable = no
port = 901
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
(:tableend:) After doing this you should be able to surf to port 901 and get the swat web interface. Sample Samba configuration file(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) # Samba config file created using SWAT # from 192.168.123.4 (192.168.123.4) # Date: 2005/09/04 22:12:53 # Global parameters [global] workgroup = YourWorkgroupNameGoesHere server string = map to guest = Bad User null passwords = Yes smb passwd file = /etc/samba/smbpasswd guest account = guest log file = /var/log/samba/%M max log size = 10 name resolve order = wins bcast socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=16384 SO_RCVBUF=16384 printcap name = /etc/cups/printcap os level = 8 preferred master = Yes dns proxy = No ldap ssl = no config file = /etc/samba/smb.conf create mask = 0771 force create mode = 0660 force directory mode = 0771 default case = upper case sensitive = No veto files = /.ShareConfFile/quota.user/quota.user~/lost+found/ map system = Yes [public] comment = "For everyone" path = /usr/public read only = No guest ok = Yes (:tableend:)
view ·
edit ·
print ·
history ·
Last edited by Martin Thierer.
Based on work by Martin Thierer, colin gebhart, Smee Jenkins, Ken Pemberton, fcarolo, case, Soheil R, Mannkind, p, BrianZhou, Steffen, Didge, Basile S, Jim V, Sean, frankvh, thx1011, George Styles, and EdLuck. Originally by effem. Page last modified on November 29, 2008, at 03:16 PM
|