Hi Everyone
I'm still trying to get swedish characters to work with newer samba than
2.0.7
so far no sucess. It garbles the national characters in 2.2.3 and in 3.0
alpha 14.
I have searched the archives and the only thing i found was that for 2.2.X
character set =ISO8859-1 and codepage = 850 should work. It dosn't for me.
In 3.X i tried with Dos charset display charset and unix charset. It didn't
work better. I got libiconv 1.7 installed
Does anyone know how to fix this or does anyone have a smb.conf that works
with swedish characters ?
I would be very happy if someone would share a working config.
I've included my smb.conf
/mats
_________________________________________________________________
MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton:
http://photos.msn.se/Support/WorldWide.aspx
-------------- next part --------------
# Samba config file created using SWAT
# from 172.16.1.11 (172.16.1.11)
# Date: 2000/09/24 18:19:03
# Global parameters
[global]
# attempt to get swedish characters with 3.0
display charset= ISO8859-1
unix charset = ISO8859-1
dos charset = ISO8859-1
#attempt to get swedish characters with 2.2.3
client code page = 850
character set = iso8859-1
valid chars = 0345:0305 0366:0326 0344:0304
use spnego=no
max log size = 1000
domain master = True
dns proxy = No
domain logons = Yes
passwd program = /usr/bin/passwd %u
encrypt passwords = yes
server string = %h server (Samba %v)
workgroup = SKRANGSTA
printer driver file = /printer/printers.def
passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n
*Password\schanged.* .
unix password sync = Yes
logon script = %U.bat
netbios name = TINY
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096
os level = 255
username map = /usr/local/samba/lib/user.map
wins support = true
[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[Netlogon]
path = /netlogon
write list = mace
guest ok = Yes
[Root]
comment = Root directory
path = /
write list = mace
guest ok = Yes
[Pub]
comment = Public files
path = /export/pub
read only = No
guest ok = Yes
[Install]
comment = Install files
path = /export/install
read only = No
guest ok = Yes
[HPLJ3P]
comment = HP LaserJet IIIP
path = /tmp
read only = No
printable = Yes
print command = /usr/bin/lpr -P hplj3p %s
printer driver = HP LaserJet IIIP
printer driver location = \\Tiny\printer
[printer]
path = /printer
Anders Widman
2002-Feb-03 08:16 UTC
[Samba] Samba dropping connection when copying more than 4GB data.
Why is Samba (have tried 2.2.2, lates 2.x cvs and 3.x cvs) dropping the connection when a Windows box is copying large files to a Samba share.The files I have been testing with are about 1024MB and the connection is lost when about 2-4GB has been transfered. I get no specific errors or warnings in the logfiles, or from the kernel (tested kernels 2.4.7-2.4.18-7) other than: [2002/02/03 17:11:03, 0] lib/util_sock.c:read_socket_data(491) read_socket_data: recv failure for 3. Error = Connection reset by peer //Anders
I found this in the log when running 2.2.3 anyone knows what i means [2002/02/03 16:47:49, 0] smbd/mangle.c:is_8_3(555) is_8_3: out of memory!>From: "Mats olsson" <mace2442@hotmail.com> >To: samba@lists.samba.org, samba-technical@lists.samba.org >Subject: Swedish characters >Date: Sun, 03 Feb 2002 16:33:59 +0100 > >Hi Everyone > >I'm still trying to get swedish characters to work with newer samba than >2.0.7 > >so far no sucess. It garbles the national characters in 2.2.3 and in 3.0 >alpha 14. > >I have searched the archives and the only thing i found was that for 2.2.X >character set =ISO8859-1 and codepage = 850 should work. It dosn't for me. > >In 3.X i tried with Dos charset display charset and unix charset. It didn't >work better. I got libiconv 1.7 installed > >Does anyone know how to fix this or does anyone have a smb.conf that works >with swedish characters ? > >I would be very happy if someone would share a working config. > >I've included my smb.conf > >/mats > >_________________________________________________________________ >MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton: >http://photos.msn.se/Support/WorldWide.aspx ><< smb.conf >>_________________________________________________________________ MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton: http://photos.msn.se/Support/WorldWide.aspx
Thats possible. I really thought i was 2.2.3 since a ran that after 3.X and the entry i took was the last one in the log.. Do you have any idea why the conversion fails? what iconv should be used with samba ? I download the Gnu libiconv-1.7 and ran configure with --with-libiconv. Then i compile -liconv is on the LIBS line. But then i try to set up conversion i get nont supported all the time. The system is a Debian 2.2 Release 3 with the kernel uppgraded to 2.4.17. I uppgraded the kernel to start looking on samba+ACL /mats>From: idra@samba.org (Simo Sorce) >To: Mats olsson <mace2442@hotmail.com> >CC: samba@lists.samba.org, samba-technical@lists.samba.org >Subject: [Samba] Re: Swedish characters >Date: Sun, 3 Feb 2002 16:52:31 -0800 > >You must be trying HEAD (3.0), in 2.2.x there's no where a debug message as >such. >In Head there's that debug message if acnv_uxu2() function fails! >That function can return NULL for 2 reasons: > - malloc effectively fails because there's no error! > - the conversion from unix to ucs2 charset failed! >That report may be wrongand depends on what happen into >string_allocate_convert(), I'm going to change that message and report a >conversion failure! > >So, I think that what happened is not that you run out of memory, but that >the charset conversion has failed for somae reason or was not supported! > > > >On Sun, Feb 03, 2002 at 09:01:05PM +0100, Mats olsson wrote: > > > > I found this in the log when running 2.2.3 anyone knows what i means > > > > [2002/02/03 16:47:49, 0] smbd/mangle.c:is_8_3(555) > > is_8_3: out of memory! > > > > >From: "Mats olsson" <mace2442@hotmail.com> > > >To: samba@lists.samba.org, samba-technical@lists.samba.org > > >Subject: Swedish characters > > >Date: Sun, 03 Feb 2002 16:33:59 +0100 > > > > > >Hi Everyone > > > > > >I'm still trying to get swedish characters to work with newer samba >than > > >2.0.7 > > > > > >so far no sucess. It garbles the national characters in 2.2.3 and in >3.0 > > >alpha 14. > > > > > >I have searched the archives and the only thing i found was that for >2.2.X > > >character set =ISO8859-1 and codepage = 850 should work. It dosn't for >me. > > > > > >In 3.X i tried with Dos charset display charset and unix charset. It >didn't > > >work better. I got libiconv 1.7 installed > > > > > >Does anyone know how to fix this or does anyone have a smb.conf that >works > > >with swedish characters ? > > > > > >I would be very happy if someone would share a working config. > > > > > >I've included my smb.conf > > > > > >/mats > > > > > >_________________________________________________________________ > > >MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton: > > >http://photos.msn.se/Support/WorldWide.aspx > > ><< smb.conf >> > > > > > > _________________________________________________________________ > > MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton: > > http://photos.msn.se/Support/WorldWide.aspx > > > > > >-- >Simo Sorce idra@samba.org >------------------------------- >Samba Team http://www.samba.org > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba >_________________________________________________________________ MSN Photos ?r det enklaste s?ttet att dela ut och skriva ut foton: http://photos.msn.se/Support/WorldWide.aspx
Nope dosn't work yet.. On the other hand i haven't been looking in to it ethier the last couple of days but i think we could need a national character howto.. I know there has been work done for japanese. /mats>From: "Tomas Zahradnicky, Jr." <zahradnicky@appleklub.cz> >To: "Mats olsson" <mace2442@hotmail.com> >Subject: Re: Swedish characters >Date: Tue, 5 Feb 2002 01:03:55 +0100 > >>Hi Everyone >> >>I'm still trying to get swedish characters to work with newer samba than >>2.0.7 >> >>so far no sucess. It garbles the national characters in 2.2.3 and in >>3.0 alpha 14. >> >>I have searched the archives and the only thing i found was that for >>2.2.X character set =ISO8859-1 and codepage = 850 should work. It >>dosn't for me. >> >>In 3.X i tried with Dos charset display charset and unix charset. It >>didn't work better. I got libiconv 1.7 installed >> >>Does anyone know how to fix this or does anyone have a smb.conf that >>works with swedish characters ? >> >>I would be very happy if someone would share a working config. >> >>I've included my smb.conf >> >>/mats > >mats, did you solve the problem? I had similar problem but for czech >language and I ended it by rewriting converting routines and using my >own encoding table from unicode to pc charset. the pc -> unix way >uses unicode map, but the reverse one uses my own table because pc -> >unix was DOESN'T WORK IN THE REVERSE DIRECTION. this is why samba >hides such files because reverse encoding doesn't work and it fails >on stat function because of file not found error. its author ignored >my bug report. (jeremy allison) jra@samba.org is probably too proud >of himself to tell ok, my code is wrong... :-/ > >-Tomas >-- ># Tomas Zahradnicky, Jr ># The Czech Technical University ># FEE-CTU, Prague_________________________________________________________________ Kom med i v?rldens st?rsta e-posttj?nst; MSN Hotmail. http://www.hotmail.com/sv
Hi everyone I'm starting to get a grip on why the swedish characters doesn't seem to work with samba 3.X it's something in the handeling of external libiconv. I changed the include/config.h so that it both had #define WITH_LIBICONV "/usr/local" and #define HAVE_NATIVE_ICONV 1 then it worked. unfortunally i found the problem with copying files with win2K explorer into a existing folder. It says access denied instead of file exists. I then uppdated from cvs and recompiled. Now the Iconv stuff is broken again.. So i guess i'll be running 2.0.7 a while longer _________________________________________________________________ MSN Photos ?r det enklaste s?ttet att dela ut?och skriva ut foton: http://photos.msn.se/Support/WorldWide.aspx
Sorry CVS update was last night. It's possible that the access denied problem now is gone but since the iconv stuff died at the same time, Samba now can't read it's config anymore. As soon as i get iconv back on the line i will test the access denied again. As you wrote they did change the error.c file. I checked the one i got and it's alright now but the binaries that work with iconv are older /mats /Mats>From: David Lee <t.d.lee@durham.ac.uk> >To: Mats olsson <mace2442@hotmail.com> >Subject: Re: Swedish characters >Date: Thu, 7 Feb 2002 22:14:16 +0000 (GMT) > >On Thu, 7 Feb 2002, Mats olsson wrote: > > > I'm starting to get a grip on why the swedish characters doesn't seem to > > work with samba 3.X > > > > it's something in the handeling of external libiconv. I changed the > > include/config.h so that it both had #define WITH_LIBICONV "/usr/local" >and > > #define HAVE_NATIVE_ICONV 1 > >I don't know about that one. But ... > > > then it worked. unfortunally i found the problem with copying files with > > win2K explorer into a existing folder. It says access denied instead of >file > > exists. > >This sounds like a bug in source/lib/error.c that was fixed about two days >ago. (In fact it was this fix that caused the release of "2.2.3a" last >night as a follow-up to last week's "2.2.3", if I understand correctly.) > > > I then uppdated from cvs and recompiled. Now the Iconv stuff is broken > > again.. > >According to the CVSweb interface to Samba, this fix was applied to both >the 2.2.x series and to HEAD. > >My guess is that your update from CVS was done a few days ago, before this >fix. If that is the case, then a fresh CVS update would probably fix this >"access denied" problem for you. > >Hope that helps. > >-- > >: David Lee I.T. Service : >: Systems Programmer Computer Centre : >: University of Durham : >: http://www.dur.ac.uk/t.d.lee/ South Road : >: Durham : >: Phone: +44 191 374 2882 U.K. : >_________________________________________________________________ MSN Photos ?r det enklaste s?ttet att dela ut, redigera?och skriva ut foton. http://photos.msn.se/Support/WorldWide.aspx
The access denied problem is gone with cvs update and the iconv problem is bypassed as i upgraded the box to debian 3.0 /mats>From: "Mats olsson" <mace2442@hotmail.com> >To: t.d.lee@durham.ac.uk, samba@lists.samba.org, >samba-technical@lists.samba.org >Subject: [Samba] Re: Swedish characters >Date: Fri, 08 Feb 2002 10:12:46 +0100 > > >Sorry CVS update was last night. It's possible that the access denied >problem now is gone but since the iconv stuff died at the same time, Samba >now can't read it's config anymore. As soon as i get iconv back on the line >i will test the access denied again. As you wrote they did change the >error.c file. I checked the one i got and it's alright now but the binaries >that work with iconv are older > >/mats > >/Mats > >>From: David Lee <t.d.lee@durham.ac.uk> >>To: Mats olsson <mace2442@hotmail.com> >>Subject: Re: Swedish characters >>Date: Thu, 7 Feb 2002 22:14:16 +0000 (GMT) >> >>On Thu, 7 Feb 2002, Mats olsson wrote: >> >> > I'm starting to get a grip on why the swedish characters doesn't seem >>to >> > work with samba 3.X >> > >> > it's something in the handeling of external libiconv. I changed the >> > include/config.h so that it both had #define WITH_LIBICONV "/usr/local" >>and >> > #define HAVE_NATIVE_ICONV 1 >> >>I don't know about that one. But ... >> >> > then it worked. unfortunally i found the problem with copying files >>with >> > win2K explorer into a existing folder. It says access denied instead of >>file >> > exists. >> >>This sounds like a bug in source/lib/error.c that was fixed about two days >>ago. (In fact it was this fix that caused the release of "2.2.3a" last >>night as a follow-up to last week's "2.2.3", if I understand correctly.) >> >> > I then uppdated from cvs and recompiled. Now the Iconv stuff is broken >> > again.. >> >>According to the CVSweb interface to Samba, this fix was applied to both >>the 2.2.x series and to HEAD. >> >>My guess is that your update from CVS was done a few days ago, before this >>fix. If that is the case, then a fresh CVS update would probably fix this >>"access denied" problem for you. >> >>Hope that helps. >> >>-- >> >>: David Lee I.T. Service : >>: Systems Programmer Computer Centre : >>: University of Durham : >>: http://www.dur.ac.uk/t.d.lee/ South Road : >>: Durham : >>: Phone: +44 191 374 2882 U.K. : >> > > >_________________________________________________________________ >MSN Photos ?r det enklaste s?ttet att dela ut, redigera?och skriva ut >foton. >http://photos.msn.se/Support/WorldWide.aspx > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba_________________________________________________________________ H?mta MSN Explorer kostnadsfritt p? http://explorer.msn.se/intl.asp