Hi ! I have installed samba 2.2.6. And in my /var/log/messages i got: Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by 1 in string_sub(%u, 7) Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] lib/util_str.c:string_sub(1217) Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by 1 in string_sub(%u, 7) Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] lib/util_str.c:string_sub(1217) Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by 1 in string_sub(%u, 7) Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] lib/util_str.c:string_sub(1217) I have compilled it from tar.gz, build it from samba.spec, rebuild from .src.rpm - same result In my smb.conf i got %u and i thing this is the problem ... my conf rh 7.0 all erratas 2.4.18 greetz boka ----------------------------------------------------------------------- Diety, horoskopy, kosmetyczne nowo?ci... Wszystko, czego potrzebuje nowoczesna kobieta! www.polki.wp.pl - serwis dost?pny w portalu Wirtualna Polska
> Subject: [Samba] 2.2.6 problems >...> I have installed samba 2.2.6. > > And in my /var/log/messages i got: > > Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by > 1 in string_sub(%u, 7) > Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] > lib/util_str.c:string_sub(1217) > Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by > 1 in string_sub(%u, 7) > Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] > lib/util_str.c:string_sub(1217) > Oct 22 16:04:11 beer smbd[27622]: ERROR: string overflow by > 1 in string_sub(%u, 7) > Oct 22 16:04:11 beer smbd[27622]: [2002/10/22 16:04:11, 0] > lib/util_str.c:string_sub(1217) > > I have compilled it from tar.gz, build it from samba.spec, > rebuild from .src.rpm - same result > > In my smb.conf i got %u and i thing this is the problem ... >How long are your usernames actually? Does it also appear when you create a really short one?
> How long are your usernames actually? > Does it also appear when you create a really short one?the shortest contains 4 characters, the longest - 16. greetz boka ----------------------------------------------------------------------- Diety, horoskopy, kosmetyczne nowo?ci... Wszystko, czego potrzebuje nowoczesna kobieta! www.polki.wp.pl - serwis dost?pny w portalu Wirtualna Polska
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 22 Oct 2002 gnu_is_not_unix@wp.pl wrote:> smbd[27622]: [2002/10/22 16:04:11, 0] lib/util_str.c:string_sub(1217) > smbd[27622]: ERROR: string overflow by 1 in string_sub(%u, 7)...> > I have compilled it from tar.gz, build it from samba.spec, rebuild from > .src.rpm - same result > > In my smb.conf i got %u and i thing this is the problem ...You probably should post your smb.conf section that uses the %u variable. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE9tpyfIR7qMdg1EfYRAkXjAJ9nmxcKAdFHg9H8xn8ekm+OC2V80wCfa5l2 buia0fJyRTZAeCXYH8fNav8=Yr6+ -----END PGP SIGNATURE-----
> You probably should post your smb.conf section that uses the %u variable.passwd program = /usr/bin/passwd %u add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u logon script = %u.BAT greetz boka ----------------------------------------------------------------------- Diety, horoskopy, kosmetyczne nowo?ci... Wszystko, czego potrzebuje nowoczesna kobieta! www.polki.wp.pl - serwis dost?pny w portalu Wirtualna Polska
> passwd program = /usr/bin/passwd %u > add user script = /usr/sbin/useradd -d /dev/null -g 100 -s/bin/false -M %u> logon script = %u.BATI had the very same problem. (update from samba 2.2.3 to 2.2.6) In the release notes, I found that thing : 3) Fixed string substitutions to accept a length for sanity checks I think I solved the problem by using : logon script = li-%u.BAT I did some other modifications in my smb.conf but none about %u strings. BTW, I can now log on samba domain with my WinXP Pro SP1 (I had to delete / recreate workstation account to make it work) Rgds.
> I think I solved the problem by using : > logon script = li-%u.BATfor me it is not a solution it is a workaround. For example i have 500 users, each user has different login script, so i have to change name of 500 files - i know i can do it with perl or smth, but is this a bug in a code or my conf. ? -- Best regards, gnu_is_not_unix