Re: [Samba] file differences when copying files to linux, using samba
jeffunit wrote: I ran my python program locally on the linux system, and it reported that roughly 100 md5sums for files differed. Any ideas how to track down this problem --- Could it be a code-page conversion issue? Have you tried copying the file over with cp from windows to your server? (cp from 'cygwin')? Have you tried comparing some of the differing files and looking for a pattern? Does the change get undone if you use explorer to copy the file back from the linbox to the winbox? I use a similar setup to backup my files -- though I use 'rsync' from windows to keep the server copy synchronized (which gets backed up nightly w/xfsdump. I can't say why, exactly, but I wouldn't trust windows explorer to copy over such a large number of files. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: samba Digest, Vol 61, Issue 28
Hello, I am out of the office Thursday 1/24 and Friday 1/25/08. I will be back on Monday 1/28/08. Please contact greg[at]equalvision[dot]com for anything urgent. Thank you -- Paul Gigante Equal Vision Records, Inc. P.O. Box 38202 | Albany, NY | 12203-8202 ph: 518.458.8250 x203 | fx: 518.458.1312 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Official Samba builds for Ubuntu?
Frank Gruman wrote: I believe Ubuntu has builds of Samba available through their repositories. Yes of course that is the way to get the official distro release. Ubuntu, like Debian, only issue security patches to their packages after a certain distro is released. I am fishing for a place to get the latest Samba versions specifically compiled / packaged for a version if Ubuntu instead of the former method. -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file differences when copying files to linux, using samba
At 01:03 AM 1/27/2008, Linda W wrote: jeffunit wrote: I ran my python program locally on the linux system, and it reported that roughly 100 md5sums for files differed. Any ideas how to track down this problem --- Could it be a code-page conversion issue? I am not sure, but I think that involves translating language encoding from one form to another. I hope that neither samba nor windows explorer does that silently. Have you tried copying the file over with cp from windows to your server? (cp from 'cygwin')? No, but I will try that today. Have you tried comparing some of the differing files and looking for a pattern? Yes. I wrote a modified version of cmp that tries to list all byte differences. I was looking at an iso image of some linux distribution. There were three bytes that differed, and if I recall correctly, they were all one bit differences. Does the change get undone if you use explorer to copy the file back from the linbox to the winbox? I haven't tried that, but even if it does, I consider it a bug if a file isn't stored remotely, byte-for-byte the same. I use a similar setup to backup my files -- though I use 'rsync' from windows to keep the server copy synchronized (which gets backed up nightly w/xfsdump. I have tried rsync several times. I don't trust it, because even when I give it the --delete option, it has never reliably deleted extraneous files at the dest dir. I can't say why, exactly, but I wouldn't trust windows explorer to copy over such a large number of files. That is certainly something to consider. My problem isn't that files don't get copied though; my problem is a few bits get flipped in the gigabytes I transfer. That is scarier to me, as a missing file is much more obvious than a few bits flipped. Both of my machines are as reliable as I can make them, for example both have ecc memory. If there are setting for samba to do more checksums during transfer or to use tcp only, I will happily try them out. Right now I am installing a second os disk, so I can switch os/samba configurations quickly, as well as remove the old os disk as a possible problem. thanks, jeff -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Official Samba builds for Ubuntu?
Quoting Michael Lueck ([EMAIL PROTECTED]): Frank Gruman wrote: I believe Ubuntu has builds of Samba available through their repositories. Yes of course that is the way to get the official distro release. Ubuntu, like Debian, only issue security patches to their packages after a certain distro is released. I am fishing for a place to get the latest Samba versions specifically compiled / packaged for a version if Ubuntu instead of the former method. Upstream (ie the Samba team) has, IIRC, the project of keeping up with the maintenance of packages provided on samba.org for up-to-date Samba versions for Debian and Ubuntu stable releases (I guess, for Ubuntu, only for long-term support releases). Last time I saw discussion about this, Jerry Carter was in duty of this...but he's obviously busy with release management. We (Deiban/Ubuntu maintainers) hope to continue the work on Debian packages so that they are more and more easy to build on our stable releases. Actually, they are already, but some changes we do in our package may not be suitable with the point of view of the Samba Team (mostly file locations). Deeper discussions with Jerry (next SambaXP, Jerry, if you read me?) could help in having all this converging and make the work of producing packages for Debian/Ubuntu easier for the Samba Team. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file differences when copying files to linux, using samba
jeffunit wrote: At 01:03 AM 1/27/2008, Linda W wrote: jeffunit wrote: I ran my python program locally on the linux system, and it reported that roughly 100 md5sums for files differed. Any ideas how to track down this problem --- Could it be a code-page conversion issue? I am not sure, but I think that involves translating language encoding from one form to another. I hope that neither samba nor windows explorer does that silently. Have you tried copying the file over with cp from windows to your server? (cp from 'cygwin')? No, but I will try that today. Have you tried comparing some of the differing files and looking for a pattern? Yes. I wrote a modified version of cmp that tries to list all byte differences. I was looking at an iso image of some linux distribution. There were three bytes that differed, and if I recall correctly, they were all one bit differences. Hi, I would think one bit differences should be picked up by the TCP transport layer. You probably have Rx checksum offload on the receiving box. You could try turning that off and recopying to see if the error persists. Could be a bad card. Seems unlikely the Tx sender could send an incorrect checksum unless the buffer memory flipped a bit before checksum computation which seems ruled out by the ECC. Still, I'm a believer in memtest. Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Official Samba builds for Ubuntu?
Greetings Christian- Thank you for your comments about the progress behind the scenes. I am sure you have heard it before, but there is interest in some sort of official builds of Samba from somewhere of Samba releases as they happen. I will try to be patient for this to happen. ;-) Thanks, -- Michael Lueck Lueck Data Systems http://www.lueckdatasystems.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file differences when copying files to linux, using samba
Have you tried copying the file over with cp from windows to your server? (cp from 'cygwin')? No, but I will try that today. Have you tried comparing some of the differing files and looking for a pattern? Yes. I wrote a modified version of cmp that tries to list all byte differences. I was looking at an iso image of some linux distribution. There were three bytes that differed, and if I recall correctly, they were all one bit differences. Hi, I would think one bit differences should be picked up by the TCP transport layer. You probably have Rx checksum offload on the receiving box. You could try turning that off and recopying to see if the error persists. Could be a bad card. How do I turn rx checksums off under linux? This is an intel pro1000 ct. I am happy to try it. The gigabit ethernet is on-board, but I have several spare gigabit nics available. Seems unlikely the Tx sender could send an incorrect checksum unless the buffer memory flipped a bit before checksum computation which seems ruled out by the ECC. Still, I'm a believer in memtest. I ran memtest-86+ through about 5 iterations, and there were no problems. thanks, jeff -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file differences when copying files to linux, using samba
jeffunit wrote: Have you tried copying the file over with cp from windows to your server? (cp from 'cygwin')? No, but I will try that today. Have you tried comparing some of the differing files and looking for a pattern? Yes. I wrote a modified version of cmp that tries to list all byte differences. I was looking at an iso image of some linux distribution. There were three bytes that differed, and if I recall correctly, they were all one bit differences. Hi, I would think one bit differences should be picked up by the TCP transport layer. You probably have Rx checksum offload on the receiving box. You could try turning that off and recopying to see if the error persists. Could be a bad card. How do I turn rx checksums off under linux? This is an intel pro1000 ct. I am happy to try it. The gigabit ethernet is on-board, but I have several spare gigabit nics available. If eth0 is the name: ethtool -K eth0 rx off I got good service out of these settings in modprobe.conf (one line) options e1000 RxDescriptors=1024 TxDescriptors=1024 InterruptThrottleRate=1 I have lots of memory, so I upped the buffers, probably overkill. Default is 256 InterruptThrottleRate defaults to 3 (dynamic conservative) and I changed it to 1 (dynamic). see /usr/src/current kernel/Documentaion/networking/e1000.txt Along with larger buffers in smb.conf, I regularly hit my hard disk limits on gigabyte. And bit error free. I never did it your way, but I have run tripwire with checksums and after disaster recovery, haven't had any issues or noticed any discrepancies with entire drives going across the wires. Seems unlikely the Tx sender could send an incorrect checksum unless the buffer memory flipped a bit before checksum computation which seems ruled out by the ECC. Still, I'm a believer in memtest. I ran memtest-86+ through about 5 iterations, and there were no problems. thanks, jeff Good luck (whatever it is), Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba anti virus vfs module: scannedonly-0.11
Dear all, Scannedonly 0.11 has been released. Scannedonly is a samba VFS module that ensures that only files that have been scanned for viruses are visible and accessible to the end user. The vfs module has a few new options to simulate on-access scanning for small (fast scanned) files. The clamAV daemon now has automatic database reloading. Documentation and downloads can be found at http://olivier.sessink.nl/scannedonly/ There is also a patch against samba 3.2 (git) that includes the vfs module into the samba source tree: http://olivier.sessink.nl/scannedonly/scannedonly-0.11_git.patch.gz regards, Olivier Sessink -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problems with SAMBA
Hi All, sorry about this, but i don't know where to take some help about it, then I will try you. I am having a freaking error with samba. I set the samba security level to share, but it still asking for a password (konqueror and dolphin) and windows machines says that can't have permission to access the share. Can you help me with this? My smb.conf is [global] workgroup = CASA server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = share encrypt passwords = yes passdb backend = tdbsam obey pam restrictions = yes guest account = nobody invalid users = root socket options = TCP_NODELAY map to guest = Bad User restrict anonymous = no guest ok = yes domain master = no preferred master = no [DADOS] path = /media/dados/ read only = yes available = yes guest ok = yes thx for your time and your help. -- Marcelo Marzola Bossoni IC - UNICAMP *** EC 04 *** Engenharia de Computação Tel.: (14) 3474 1160 Tel.: (19) 3342 4752 Cel.: (19) 9765 1919 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Trusted domain user login
Greetings! To check trustdomains, i used the following to check: - [EMAIL PROTECTED] ~]# net rpc trustdom list -U Administrator Password: Trusted domains list: RLDP_DESIGN3S-1-5-21-1368937059-1125409327-331614939 RLDP_NT S-1-5-21-835351122-509441910-1850952788 none Trusting domains list: RLDP_NT S-1-5-21-835351122-509441910-1850952788 RLDP_DESIGN3S-1-5-21-1368937059-1125409327-331614939 -- Then, i also tried wbinfo -a, if samba could authenticate trusted domain users properly. -- [EMAIL PROTECTED] ~]# wbinfo -a rldp_nt\\jay%secret plaintext password authentication succeeded challenge/response password authentication succeeded -- It seems to be running ok. I tried to set debug level to 10 and tried to look at the log files. I may have found something. On the logfile, the profile path, logon script and dir drive seems to be blank. I suspect that these might be the problem. If this is, any ideas what might have caused it? [2008/01/25 21:58:44, 10] passdb/pdb_get_set.c:pdb_set_logon_script(626) pdb_set_logon_script: setting logon script , was default.bat [2008/01/25 21:58:44, 10] passdb/pdb_get_set.c:pdb_set_profile_path(649) pdb_set_profile_path: setting profile path , was \\aphrodite\profiles\RLDP_NT\jay [2008/01/25 21:58:44, 10] passdb/pdb_get_set.c:pdb_set_homedir(696) pdb_set_homedir: setting home dir , was \\aphrodite\home\RLDP_NT\jay [2008/01/25 21:58:44, 10] passdb/pdb_get_set.c:pdb_set_dir_drive(672) pdb_set_dir_drive: setting dir drive , was G: thanks regards, Jay -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Retry: Mapping AD domain users to UNIX users
About two months ago I actually tried setting up an enviornment in vmware with samba plus using active directory RFC 2307 schema extensions to get username information mapped properly between multiple nfs and samba servers. I failed because I think documentation at that time using idmap_nss was lacking. I found lots of winbind howtos and documentation, but very little regarding what I wanted to do. I would definately use the latest samba (3.0.25+), even though installing it on solaris is a nightmare, you'll be better off in the long run. Has anyone successfully done this? I got everything working including kerberos and joining the domains, except for a proper smb.conf file. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Official Samba builds for Ubuntu?
Quoting Michael Lueck [EMAIL PROTECTED]: Greetings- I am wondering if anyone from the Samba team would happen to have interest in creating official builds for Ubuntu? To add a twist, unfortunately I would not be fishing for 7.10 packages, but rather 7.04 as we ran into too many issues with 7.10 whereas 7.04 seems rock solid stable. Or, are there packages built of Samba releases for Ubuntu external to samba.org? Feisty comes with Samba 3.0.24. Unofficial packages of Samba 3.0.26a for Feisty and 3.0.28 for Gutsy are available in my PPA: http://launchpad.net/~pgquiles/+archive Unofficial 3.0.28 packages for Feisty will be available in a couple of hours there, too. Packages of the latest Samba for the latest Ubuntu-stable (Gutsy, as of now) are usually available in my PPA. Most times they are just backports of the latest Ubuntu-unstable package to Ubuntu-stable but sometimes I'm ahead of Ubuntu-unstable (i. e. they may eat your computer and burn your house :-) -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1693-gec367f3
The branch, v3-2-test has been updated via ec367f307dff7948722b9ac97beb960efd91991f (commit) from 147033b9dff7160ff324fa52aba1f054f962961b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit ec367f307dff7948722b9ac97beb960efd91991f Author: Tim Potter [EMAIL PROTECTED] Date: Sun Jan 27 17:31:56 2008 +1100 Adding missing calls to va_end(). Just a small commit to get a handle on this git thingy. This patch fixes some missing calls to va_end() to match various calls to va_start() and VA_COPY(). Tim. --- Summary of changes: source/lib/dprintf.c|8 +++- source/lib/util.c |1 + source/lib/util_tdb.c |1 + source/lib/xfile.c |8 +++- source/libsmb/ntlmssp_parse.c | 23 +++ source/printing/print_generic.c |4 6 files changed, 39 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/dprintf.c b/source/lib/dprintf.c index 18b2616..a3bb5be 100644 --- a/source/lib/dprintf.c +++ b/source/lib/dprintf.c @@ -47,7 +47,10 @@ lang_msg_free(msgstr); - if (ret = 0) return ret; + if (ret = 0) { + va_end(ap2); + return ret; + } /* now we have the string in unix format, convert it to the display charset, but beware of it growing */ @@ -56,6 +59,7 @@ again: p2 = (char *)SMB_MALLOC(maxlen); if (!p2) { SAFE_FREE(p); + va_end(ap2); return -1; } clen = convert_string(CH_UNIX, CH_DISPLAY, p, ret, p2, maxlen, True); @@ -72,6 +76,8 @@ again: ret = fwrite(p2, 1, clen, f); SAFE_FREE(p2); + va_end(ap2); + return ret; } diff --git a/source/lib/util.c b/source/lib/util.c index e5ac375..dba7142 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -2431,6 +2431,7 @@ char *smb_xstrndup(const char *s, size_t n) if (n == -1 || ! *ptr) { smb_panic(smb_xvasprintf: out of memory); } + va_end(ap2); return n; } diff --git a/source/lib/util_tdb.c b/source/lib/util_tdb.c index ce2cb42..dd5ebcd 100644 --- a/source/lib/util_tdb.c +++ b/source/lib/util_tdb.c @@ -656,6 +656,7 @@ int tdb_unpack(const uint8 *buf, int bufsize, const char *fmt, ...) return PTR_DIFF(buf, buf0); no_space: + va_end(ap); return -1; } diff --git a/source/lib/xfile.c b/source/lib/xfile.c index c985222..ee6e581 100644 --- a/source/lib/xfile.c +++ b/source/lib/xfile.c @@ -223,9 +223,15 @@ size_t x_fwrite(const void *p, size_t size, size_t nmemb, XFILE *f) VA_COPY(ap2, ap); len = vasprintf(p, format, ap2); - if (len = 0) return len; + if (len = 0) { + va_end(ap2); + return len; + } ret = x_fwrite(p, 1, len, f); SAFE_FREE(p); + + va_end(ap2); + return ret; } diff --git a/source/libsmb/ntlmssp_parse.c b/source/libsmb/ntlmssp_parse.c index ac8846a..70377cb 100644 --- a/source/libsmb/ntlmssp_parse.c +++ b/source/libsmb/ntlmssp_parse.c @@ -170,6 +170,7 @@ bool msrpc_gen(DATA_BLOB *blob, /* a helpful macro to avoid running over the end of our blob */ #define NEED_DATA(amount) \ if ((head_ofs + amount) blob-length) { \ +va_end(ap); \ return False; \ } @@ -216,16 +217,20 @@ bool msrpc_parse(const DATA_BLOB *blob, if ((len1 != len2) || (ptr + len1 ptr) || (ptr + len1 len1) || (ptr + len1 blob-length)) { + va_end(ap); return false; } if (len1 1) { /* if odd length and unicode */ + va_end(ap); return false; } if (blob-data + ptr (uint8 *)(unsigned long)ptr || - blob-data + ptr blob-data) + blob-data + ptr blob-data) { + va_end(ap); return false; + } if (0 len1) { char *p = NULL; @@ -261,13 +266,16 @@ bool msrpc_parse(const DATA_BLOB *blob, if ((len1 != len2) || (ptr + len1 ptr) || (ptr + len1 len1) ||
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1694-g3959b19
The branch, v3-2-test has been updated via 3959b1954b02405ec174497fa17e345ca6d5ee94 (commit) from ec367f307dff7948722b9ac97beb960efd91991f (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 3959b1954b02405ec174497fa17e345ca6d5ee94 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sun Jan 27 10:22:42 2008 +0100 We need to leave the corepath around In case we need to dump core, in line 191 we dereference corepath to be able to chdir there. Jeremy, please check! Volker --- Summary of changes: source/lib/fault.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/lib/fault.c b/source/lib/fault.c index 33e1401..1964955 100644 --- a/source/lib/fault.c +++ b/source/lib/fault.c @@ -132,7 +132,6 @@ void dump_core_setup(const char *progname) sys_chown(corepath,getuid(),getgid()); chmod(corepath,0700); - SAFE_FREE(corepath); SAFE_FREE(logbase); #ifdef HAVE_GETRLIMIT -- Samba Shared Repository
Build status as of Mon Jan 28 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-01-27 00:01:03.0 + +++ /home/build/master/cache/broken_results.txt 2008-01-28 00:00:16.0 + @@ -1,22 +1,22 @@ -Build status as of Sun Jan 27 00:00:02 2008 +Build status as of Mon Jan 28 00:00:02 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 29 10 0 +ccache 26 8 0 ctdb 0 0 0 distcc 1 0 0 -ldb 29 22 0 -libreplace 28 18 0 -lorikeet-heimdal 24 15 0 -pidl 16 5 0 +ldb 27 20 0 +libreplace 26 16 0 +lorikeet-heimdal 22 13 0 +pidl 15 4 0 ppp 8 6 0 -rsync29 13 0 +rsync27 11 0 samba-docs 0 0 0 samba-gtk4 4 0 -samba_3_2_test 29 16 0 -samba_4_0_test 27 26 0 -smb-build27 3 0 -talloc 29 9 0 -tdb 28 18 0 +samba_3_2_test 27 14 0 +samba_4_0_test 25 24 0 +smb-build25 3 0 +talloc 27 7 0 +tdb 27 16 0