OpenWrt Forum Archive

Topic: Samba Problems with Windows Client

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I have an Asus WL-500g Deluxe which I want to use as a fileserver, attached with a USB Disk.
I installed the Samba packages exactly how described in the HowTo (http://wiki.openwrt.org/SambaHowto?high ? 28howto%29), getting the packages direct from the internet (ipkg install http://downloads.openwrt.org/people/nic ? mipsel.ipk).

Samba works fine for my Mac Client (iBook MacOS 10.4) and a Suse 10.x Client without any additional attentions. Only my two Windows XP Pro Clients trigger the following errormessage in the logread:

kern.err smbd[11661]: Invalid packet length! (65600 bytes).

As one of the two machine is also the Suse Machine (dual boot) I exclude problems regarding to the network hardware (network card, lines, additional router).

It seem to me, that the windows client sends blocks which are too big (64k boundary?). I am not sure, wether that is a problem from Windows or the Samba implementation. I hope I can get a configuration parameter, to size up the buffer or some changes in the Windows registry to avoid sending big blocks.

As the fileserver is the only purpos of my router, solving that problem is very important to me. Thanks for all answers (except chuck away the windows clients).

Regards,



Helmut

Does anyone sucessfully run XP clients especially XP Pro?

Regards,


Helmut

Hi, I have exactly same problem :-(. On Oleg's firmware was everything OK.

I have no problems at all with samba and windows clients. I have used both XP Pro and XP Home.

I am also using Linux and XBMC (XboxMediaCenter) for clients against my samba server running on an ASUS WL-500G Deluxe.

I'm using wl-hdd with preRC5 and I also didn't have problems with XP Pro but have question about smbpasswd. How can I make shared folder for different users with own passwords? I was reading tutorial about samba, changed config in smb.conf, and it says I need to add users to system first since OpenWrt is one user system and there is no adduser, I managed to add it manually in /etc/passwd with settings from nobody so my added users have following settings nrg:*:65534:65534:nrg:/var:/bin/false and NRG:*:65534:65534:NRG:/var:/bin/false after that smbpasswd went fine and the samba password for both users nrg and NRG ware added. Unfortunatelly it doesn't work sad Do you have any clue what might be the problem?

nrg: if you really want, you can compile in useradd in the busybox config. That's probably the wrong way to go about it, though. It may be the only way. I dunno. But make sure you have a

server = SERVERNAME

line.

- Yasha

Hi Macsat,

I am wondering about that. Did you need some special configuration to make it work. I tried a lot of various parms, but without sucess.

Because this is only a write problem: did you really write big files from the XP-client? With small files I also had no problems. In some times Windows didn't know, that write went wrong. So I made a compare and the files were different in many blocks (most of target-file were null-bytes).


Regards

Helmut

(Last edited by helmut on 2 Mar 2006, 04:11)

Hi Nrg,

I didn't try that, but in windows the userids are not case sensitive so that could be the reason.

Regards

Helmut

helmutn, I dont think I really have written large files with windows lately - only with my linux box.

I will try to write a large file with windows later today.

What do you regard a BIG file ?

I used the configuration described on my page in the samba tutorial.

Hello Helmut,

I'm aware of it, and I set up two accounts nrg and NRG on router. According to some samba tutorial it prevents the problems with windows, I don't know if adding users to system in passwd the way I did is ok... What do you think?

regards
nrg

Hi Macsat,

I had the problem with MP3 files, so writing a few megs should show the error.

Hi nrg!

I think the answer to your problem should be a linux answer, not a samba one.

You should create a group in /etc/groups and assign the users to that group. Change the group assignment (chgrp) of the shared directory. Create the Samba share and all users should have access to it. I did that and it worked. But because of my windows-write-problem I have no expirience about writing the files (be aware of the rights - sticky bit in the directory).

I hope that helps you.

Regards


Helmut

helmut, do you have any news one this? Getting the same error here ( Invalid packet length! (65600 bytes).
)... just freshly installed samba (happens both on 2.0x and 3.0x versions). I'm connecting from a WinXP SP2 machine.

EDIT: ok I think I should read the log more carefully ... it doesn't happen now on the 3.0x version I got from here http://www2.wpkg.org/openwrt/

Maybe this helps you too.

(Last edited by TheEagle on 6 Mar 2006, 17:20)

TheEagle wrote:

helmut, do you have any news one this? Getting the same error here ( Invalid packet length! (65600 bytes).
)... just freshly installed samba (happens both on 2.0x and 3.0x versions). I'm connecting from a WinXP SP2 machine.

EDIT: ok I think I should read the log more carefully ... it doesn't happen now on the 3.0x version I got from here http://www2.wpkg.org/openwrt/

Maybe this helps you too.

how long did it take you to install samba 3? mine just hangs at "Installing Samba 3 to root"

helmut wrote:

Samba works fine for my Mac Client (iBook MacOS 10.4) and a Suse 10.x Client without any additional attentions. Only my two Windows XP Pro Clients trigger the following errormessage in the logread:

kern.err smbd[11661]: Invalid packet length! (65600 bytes).

Please try the Samba package from [link removed] (the package is for White Russian pre-rc5).

Report here if it works for you.

(Last edited by olli on 6 Mar 2006, 22:52)

Working perfectly Olli - except your link ;-)
(it only points to : http:///)

Fixed in changeset:3321.

You have to build your own binary from Subversion (my download link from above is removed).

(Last edited by olli on 6 Mar 2006, 22:51)

netddos wrote:
TheEagle wrote:

helmut, do you have any news one this? Getting the same error here ( Invalid packet length! (65600 bytes).
)... just freshly installed samba (happens both on 2.0x and 3.0x versions). I'm connecting from a WinXP SP2 machine.

EDIT: ok I think I should read the log more carefully ... it doesn't happen now on the 3.0x version I got from here http://www2.wpkg.org/openwrt/

Maybe this helps you too.

how long did it take you to install samba 3? mine just hangs at "Installing Samba 3 to root"

Think your problem is it is simply to big to install to "root" ... I installed to /opt (my external USB disk) ... don't remember how long it took, but wasn't too long.

But if a fix is there for version 2, I'll switch back. v3 is eating up a lot of resources.

olli wrote:

Fixed in changeset:3321.

You have to build your own binary from Subversion (my download link from above is removed).

Thanks a lot. Works like a charme now ... at first I was a bit disappointed you didn't provide the download link, but I used the chance to "build" (compile) my first package ever using the SDK  (used a colinux-debian for it).

TheEagle wrote:
olli wrote:

Fixed in changeset:3321.

You have to build your own binary from Subversion (my download link from above is removed).

Thanks a lot. Works like a charme now ... at first I was a bit disappointed you didn't provide the download link, but I used the chance to "build" (compile) my first package ever using the SDK  (used a colinux-debian for it).

how did you get your samba 3 install?

mine is keep saying :no space left

netddos - you need to install to another place than root (you need to put it on some external storage device like a USB disk, SD Card, Samba mount, NFS mount or so on!)......check out my page on how to install packages to /opt   :

http://www.macsat.com/macsat/content/view/16/30/

You could also try to just go for the 2.x version that Olli fixed, if you dont have any specific need for 3.x.

The binary can be downloaded from my page as well:
http://www.macsat.com/macsat/component/ … info/id,9/

Thanks to Olli for the fix, and the binary.

thanks i'll try it out.

olli wrote:

Fixed in changeset:3321.

You have to build your own binary from Subversion (my download link from above is removed).

I tried it out and it works for me too. Thanks a lot.

i installed this version to my opt dir:
http://www2.wpkg.org/openwrt/samba_3.0.21b_mipsel.ipk

but everytime i want to start samba there's an error saying this:

root@WRT54GSDEV:/etc/samba$ smbd -FS
smbd version 3.0.21b started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
Unable to connect to CUPS server localhost - Connection refused
Unable to connect to CUPS server localhost - Connection refused
Failed to open group mapping database
failed to initialize group mapping
Failed to open account policy database
Failed to open account policy database
Failed to open account policy database
Failed to open account policy database
Failed to open account policy database
Failed to open account policy database

Is there an tutorial on how to build my own samba package?
i would also like to have smbadduser support!

The discussion might have continued from here.