[Samba] Re: Winbind on HPUX11, Totally Stuck, Please Help
On Mon, 27 Jan 2003, Miles Roper wrote: Let me first say that I am no expert on HP-UX, maybe Tim Potter can help, now that he works for them. > I can do a wbinfo -u and get the user names, and a wbinfo -g returns the > groups. I had to specify the password to use first with > > wbinfo -A user%password > > I also joined the domain sucessfully with OK, this looks like winbindd is sort of works ... > /etc/nsswitch.conf to > > hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files > [ > passwd: files ldap > group: files ldap > > notice it is ldap, rather than winbind. The reason for this is, if you set > it to winbind you get a error about not being a supported type, ie must be > nis, ldap or files. I think this is where your problem is. ldap is not winbindd. It looks like PAM on your version of HP-UX does not handle arbritrary NSS shared library stuff. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: number of groups of NT account causes authenticationproblems
On Tue, 4 Mar 2003, Gopal Bhat wrote: > Hi, > I did more experiments with this problem and found that 'SMBD' fails to > authenticate when the Number of Groups an NT user belongs grows more > than 14 (i.e. 15 or more). > Thanks, > Gopal I can't have a look until tomorrow, but I wonder, is it possible that Solaris 9 has a restriction that the user cannot be in more that 14 groups? I would think not, but will find it difficult to test tonight. Besides, I can probably only test on Solaris 8. If that is not the problem, then I would have to look at the code that does setgroups and test on our platform. > Gopal Bhat wrote: > > > I am facing a strange problem related to authentication of NT users > > accessing the SAMBA server. > > Here are the details: > > Server: Solaris 9, SUN Ultra 60, SAMBA 2.2.7a with PAM and WINBIND > > Client: Windows XP, NT4.0, 2000 > > > > Symptoms: > > Created a share \\server\test (UNIX: /export/SMB/test) with access to > > group 'TestGoup' where 'TestUser' is a member. > > 'TestUser' is a member of 14 more groups along with 'TestGroup' (Total > > number of TestUser's group = 15) > > > > With the above settings 'TestUser' can't access the share > > '\\server\test', and the following message shows up in the Client.log: > > > > [2003/03/04 13:31:52, 0] smbd/sec_ctx.c:initialise_groups(244) > > Unable to initgroups. Error was Not owner > > [2003/03/04 13:31:52, 0] smbd/sec_ctx.c:initialise_groups(247) > > This is probably a problem with the account domain\testuser > > [2003/03/04 13:31:52, 0] smbd/service.c:make_connection(599) > > client (10.81.105.121) Can't change directory to /export/SMB/test > > (Permission denied) > > > > If I change the number of groups the user 'TestUser' belongs from 15 > > to 8 ('TestGroup' + 7 other groups), the user can access the share > > '\\server\test' without any problems. > > > > It looks like there is some limitation on number of NT group > > memberships 'smbd' can handle. Note: 'wbinfo' returns all the right > > groups of the user without any problems. > > > > Is there anyone out there who is aware of this problem and knows a > > workaround/solution to this? > > I really appreciate any help from the prestigious SAMBA Team. > > > > Thanks, > > Gopal > > > > -- Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Running smb without nmb? (Linux Suse 8.1 feature)
On Thu, 24 Oct 2002, Matthew Hannigan wrote: > > > > So how/why would splitting these scripts be a good thing? > > It's possible to not run nmbd at all, and in some > circumstances that's what you would want. Hmmm, I recently developed a script for starting smbd and nmbd under RedHat, but perhaps the Samba team should contain a standard script that was usable on most FHS/LSB compliant versions but would also work, through post-processing during install, when you install in /usr/local/samba/... Regards --- [EMAIL PROTECTED], www.richardsharpe.com, [EMAIL PROTECTED], [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbclient and large file support
On Sun, 29 Dec 2002, Adnan Olia wrote: > Hi Herb, > > I made the changes with this patch on Samba 2.2.7a and then re-compiled it > with > ./configure --with-libsmbclient > > After the new samba install, I tried to "get" a file from Win2000 Advanced > Server to Mandrake Linux 8.2 server using SMBCLIENT and was successfully > able to transfer a 6.63GB file. Then I tried to "put" a file from Mandrake > Linux 8.2 server to the Win2000 Advanced Server and the file completed at > 4GB rather than 6.63 GB. Is this normal? > > Did I do something wrong or is there some other patch. Please advise I wonder at the ability of cli_write to handle large offsets. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbclient and large file support
On Sun, 29 Dec 2002, Adnan Olia wrote: > Hi Herb, > > I made the changes with this patch on Samba 2.2.7a and then re-compiled it > with > ./configure --with-libsmbclient > > After the new samba install, I tried to "get" a file from Win2000 Advanced > Server to Mandrake Linux 8.2 server using SMBCLIENT and was successfully > able to transfer a 6.63GB file. Then I tried to "put" a file from Mandrake > Linux 8.2 server to the Win2000 Advanced Server and the file completed at > 4GB rather than 6.63 GB. Is this normal? > > Did I do something wrong or is there some other patch. Please advise OK, I have confirmed that this occurs with smbclient talking to Samba 3.0alpha. Now testing a get as well. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbclient and large file support
On Sun, 29 Dec 2002, Adnan Olia wrote: > Hi Herb, > > I made the changes with this patch on Samba 2.2.7a and then re-compiled it > with > ./configure --with-libsmbclient > > After the new samba install, I tried to "get" a file from Win2000 Advanced > Server to Mandrake Linux 8.2 server using SMBCLIENT and was successfully > able to transfer a 6.63GB file. Then I tried to "put" a file from Mandrake > Linux 8.2 server to the Win2000 Advanced Server and the file completed at > 4GB rather than 6.63 GB. Is this normal? I think it has to do with the code that reads a file on the local machine giving up after 4GB. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbclient and large file support
On Sun, 29 Dec 2002, Adnan Olia wrote: > Hi Herb, > > I made the changes with this patch on Samba 2.2.7a and then re-compiled it > with > ./configure --with-libsmbclient > > After the new samba install, I tried to "get" a file from Win2000 Advanced > Server to Mandrake Linux 8.2 server using SMBCLIENT and was successfully > able to transfer a 6.63GB file. Then I tried to "put" a file from Mandrake > Linux 8.2 server to the Win2000 Advanced Server and the file completed at > 4GB rather than 6.63 GB. Is this normal? OK, I have finally found the problem :-) cli_issue_write, in libsmb/clireadwrite.c has a bug. It does not properly code the WriteX SMB. If the offset is larger than 32-bit, it should code the WordCount as 14 and should include the upper 32 bits of the offset later in the parameters portion of the SMB. Since this is not done, all offsets are 32-bits and anything beyond 4GB is written to the segment just before or beyond 4GB :-) The fix will take a small while to code. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbclient and large file support
On Sun, 29 Dec 2002, Adnan Olia wrote: > Hi Herb, > > I made the changes with this patch on Samba 2.2.7a and then re-compiled it > with > ./configure --with-libsmbclient > > After the new samba install, I tried to "get" a file from Win2000 Advanced > Server to Mandrake Linux 8.2 server using SMBCLIENT and was successfully > able to transfer a 6.63GB file. Then I tried to "put" a file from Mandrake > Linux 8.2 server to the Win2000 Advanced Server and the file completed at > 4GB rather than 6.63 GB. Is this normal? The following might be a fix to your problem :-) diff -u -r1.2.4.9 clireadwrite.c --- libsmb/clireadwrite.c 19 Dec 2002 16:12:41 - 1.2.4.9 +++ libsmb/clireadwrite.c 30 Dec 2002 04:04:37 - @@ -231,6 +231,7 @@ size_t size, int i) { char *p; + BOOL bigoffset = False; if (size > cli->bufsize) { cli->outbuf = realloc(cli->outbuf, size + 1024); @@ -243,7 +244,10 @@ memset(cli->outbuf,'\0',smb_size); memset(cli->inbuf,'\0',smb_size); - if (size > 0x) + if ((SMB_BIG_UINT)offset >> 32) + bigoffset = True; + + if (bigoffset) set_message(cli->outbuf,14,0,True); else set_message(cli->outbuf,12,0,True); @@ -256,14 +260,20 @@ SSVAL(cli->outbuf,smb_vwv2,fnum); SIVAL(cli->outbuf,smb_vwv3,offset); - SIVAL(cli->outbuf,smb_vwv5,(mode & 0x0008) ? 0x : 0); + SIVAL(cli->outbuf,smb_vwv5,0); SSVAL(cli->outbuf,smb_vwv7,mode); + /* +* THe following is still wrong ... +*/ SSVAL(cli->outbuf,smb_vwv8,(mode & 0x0008) ? size : 0); SSVAL(cli->outbuf,smb_vwv9,((size>>16)&1)); SSVAL(cli->outbuf,smb_vwv10,size); SSVAL(cli->outbuf,smb_vwv11, smb_buf(cli->outbuf) - smb_base(cli->outbuf)); + + if (bigoffset) + SIVAL(cli->outbuf,smb_vwv12,(offset>>32) & 0x); p = smb_base(cli->outbuf) + SVAL(cli->outbuf,smb_vwv11); memcpy(p, buf, size); Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Profile migration again
On Thu, 16 Jan 2003, John H Terpstra wrote: > If they are already domain user profiles then the samba-3.0.0 'profiles' > tool should report the SID's in NTUser.DAT and should allow you to change > them. There was a bug with the profiles command which I have now fixed. The fix is in the CVS trees now. It was a one line change. Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbmount, smbumount and smbmnt
On Tue, 30 Apr 2002, Abdij Bhat wrote: > Hi, > I am deploying samba for an embedded system. The requirement is that the > system should be able to mount windows share points. I believe "smbmount, > smbumount and smbmnt" components are needed to do the same. I am not very > clear about smbmnt though! > I find that smbmount, smbumount and smbmnt are all quite huge. Around 300 > to 400Kb each. > I understand that Samba is capable of doing complex things. However if all > i need is the ability to mount and unmount share points do i need this big a > smbmount, smbumount and smbmnt? > Also whenever i choose SMB_FS support in the Kernel configuration, i am > forced to choose the NLS. Do i really need it? How can i do without it? Also > the smbmount demands codepage.850, codepage-def.850, unicode_map.850, > unicode_map.ISO8859-1 files. I have not provided the same in my embedded > development environment. Funnily, although it complains that the above files > were not found, it works fine! What does this mean? What are its > implications? Can i do without these too? Welcome to my nightmare :-) > My target is MIPS running on Linux. I could not compile Samba for MIPS > directly. However after some jugglery i changed my Makefile and it compiled > me smbmount, smbumount and smbmnt. Now smb works on my target system too. > However the file size is huge [801, 815 and 797 Kb]. How can i reduce this? Samba is not well structured from the point of view of people only trying to build a small number of components like that, however, it may be that you do actually need much of that stuff. I have just gone through the process of extracting part of smbtorture out to simply do the netbench stuff, and I have reduced the number of files built and linked from 122 to about 33. However, I do not want to do that for Samba. Regards - Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: How Samba let us down
On Wed, 23 Oct 2002, Jay Ts wrote: > Esh, Andrew wrote: > > Here at Tricord, we run Samba through some pretty intense tests, as well. > > Since we are a file system producer, we focus on corruption bugs. We haven't > > found any in Samba, > > Since I've been curious about this anyway, I might go ahead and check: > > Do you (And J. Terpstra, and others) test sending really huge files, > such as 700 MB ISO CD-ROM images or bigger, across the net, and then > run a cmp on them, going in each direction. That is: > > 1. Start with a reference huge file on Windows, known to match an >existing file on Unix, then copy it over through Samba and >do a cmp on them? About how many times is this done in your >tests? More than a few hundred? > > 2. Also run the test the other way, and compare the copies on >the Windows side? In my opinion, while it is possible to do what you say, that is not how you will detect corruption. Corruption of the sort you mention will be detected very quickly in normal tests. The sort of corruption I think we should check for is the following: 1. Samba getting confused when one user has multiple files open and writes to different files in quick succession. 2. Multiple samba clients having files open and the file system getting confused and mixing up writes from different users. cifs-load-gen would be an ideal tool for testing this if it is extended in a couple of ways. I have started talking to JHT about this. BTW, Tridge has already written a file system stress tester, as have others, that can detect the second sort of corruption. Regards --- [EMAIL PROTECTED], www.richardsharpe.com, [EMAIL PROTECTED], [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Re: What's happend when the UID/SID mapping changes for acomputer account ?
On Fri, 27 Jun 2003, Andrew Bartlett wrote: > The 'net' command should allow you to suck in the SID from the NT PDC, > if for some reason it has been lost. And it should also contain a command to allow you to display your current SID as well ... Regards - Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba