Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 04/05/12 02:26, Jeremy Allison wrote: On Thu, May 03, 2012 at 07:33:53PM +0200, steve wrote: Hi I can't see how to do that. We currently have a single box S4 which serves both the Linux and Windows clients. The files are in the same folders on the same machine. S4 serves the Win boxes (ntvfs/cifs I think) and nfs the Linux machines. How would I get a separate s3 fileserver to do the same job? If that can be done then can we still keep nfs for our Linux clients? Presumably on the same box as the s3 fileserver? Summary Server1: S4 AD DC Server2: s3 and nfs fileserver joined to Server1 domain That's exactly how to do it. You could use VM's to create the fileserver box or the S4 AD-DC. Jeremy. Hi Jeremy Thanks for the confirmation. The VM is a great idea. Just one bit of confusuion: When I create a new user, I create his homeDirectory in a share. I create the user on Server1. Can I at the same time, create his homeDirectory on Server2? Afterwards, how do I tell the clients to look at Server1 to authenticate and Server2 to get the data? I understand, I have Server1 [global] [netlogon] [sysvol] Server2 [global] [homes] [everything] [else] How do I get the clients to distinguish between the two? Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
I do not know exactly what you are trying to do!? You have one Samba4 DC-ADS the master! One samba3 the file and printserver!? Both on a physical host!? So you just need to let do Samba4 be the authentication and gpo part. The samba3 host has to join as memberserver to the ads of the Samba4. Point the samba3 server to authenticate users to the samba4. For the samba4. Login from your admin PC with ads tools from Microsoft installed: See also: http://support.microsoft.com/kb/816313/EN-US Assign a home folder to a domain user Note: To specify a network path for the home folder, you must first create the network share and set permissions that permit the user access. You can do this with Shared Folders in Computer Management on the server computer. To assign a home folder to a domain user: 1.Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers. 2.In the console tree, click Users. 3.In the Details pane, right-click the user account, and then click Properties. 4.In the Properties dialog box, click Profile. 5.Under the Home folder, type the folder information. To do this, follow these steps: •To assign a home folder on a network server, click Connect, and then specify a drive letter. •In the To box, type a path. This path can be any one of the following types: ◦Network path, for example: \\server\users\tester ##server in your turn could be the samba3 host## ◦You can substitute username for the last subfolder in the path, for example: \\server\users\username Define the home directories on the samba3 host. Good Luck Daniel --- EDV Daniel Müller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 Tübingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: muel...@tropenklinik.de Internet: www.tropenklinik.de --- -Ursprüngliche Nachricht- Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im Auftrag von steve Gesendet: Freitag, 4. Mai 2012 08:44 An: Jeremy Allison Cc: samba@lists.samba.org Betreff: Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking On 04/05/12 02:26, Jeremy Allison wrote: On Thu, May 03, 2012 at 07:33:53PM +0200, steve wrote: Hi I can't see how to do that. We currently have a single box S4 which serves both the Linux and Windows clients. The files are in the same folders on the same machine. S4 serves the Win boxes (ntvfs/cifs I think) and nfs the Linux machines. How would I get a separate s3 fileserver to do the same job? If that can be done then can we still keep nfs for our Linux clients? Presumably on the same box as the s3 fileserver? Summary Server1: S4 AD DC Server2: s3 and nfs fileserver joined to Server1 domain That's exactly how to do it. You could use VM's to create the fileserver box or the S4 AD-DC. Jeremy. Hi Jeremy Thanks for the confirmation. The VM is a great idea. Just one bit of confusuion: When I create a new user, I create his homeDirectory in a share. I create the user on Server1. Can I at the same time, create his homeDirectory on Server2? Afterwards, how do I tell the clients to look at Server1 to authenticate and Server2 to get the data? I understand, I have Server1 [global] [netlogon] [sysvol] Server2 [global] [homes] [everything] [else] How do I get the clients to distinguish between the two? Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
Hi, Thu, May 03, 2012 at 10:16:28AM -0700, Jeremy Allison napsal(a): On Thu, May 03, 2012 at 11:08:49AM +0200, steve wrote: Does this work (Word 2010 sees other opens) if you run the clients against an S3 server ? I'm guessing it will. The current recommended setup is to use S4 as an AD-DC, but S3 joined to the domain as a fileserver. The S3 fileserver code will replace the S4 fileserver before official S4 release. Why not use Samba Frenky? Mix of S4 and S3. I'm using it successfully. It doesn't need any virtualization on IP splitting. And when you use S4 AD-DC + S3 FS why don't you use only different IP in one box isn't it enough? Why virtualization? Best regards, Luf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 04/05/12 09:19, Daniel Müller wrote: I do not know exactly what you are trying to do!? You have one Samba4 DC-ADS the master! One samba3 the file and printserver!? Both on a physical host!? Hi Daniel and thanks for the explanation. I want s4 on one box and s3 on another. (I can't see a way of having 2 smb.conf on the same physical box, so we separate them.) Currently I'm administering all this using scripts from the s4 DC under Linux: http://linuxcostablanca.blogspot.com.es/p/s4bind.html It works fine but the ntvfs fileserver that comes with s4 is rather limited. I want to serve files using the s3 fileserver which supports the Posix options I need. That will be on another box or VM. So you just need to let do Samba4 be the authentication and gpo part. Yes The samba3 host has to join as memberserver to the ads of the Samba4. Yep. I can do that. I already have Linux clients joined to the domain. But simply to set the realm and so they can get a keytab using net ads keytab create. Nothing else. It's the [global] section on the s3 fileserver's smb.conf I can't work out! Point the samba3 server to authenticate users to the samba4. This is the bit I'm missing. Is this a line in smb.conf on the s3 box? For the samba4. Login from your admin PC with ads tools from Microsoft installed: I have the profile and home drive mappings setup via a script. Define the home directories on the samba3 host. Those would be everything I have at the moment in the s4 smb.conf except the netlogion and sysvol shares? then remove those shares from the s4 smb.conf? TIA for your patience, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
This could be a hint to establish it: http://www.enterprisenetworkingplanet.com/netos/article.php/3487081/Join-Samba-3-to-Your--Active-Directory-Domain.htm --- EDV Daniel Müller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 Tübingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: muel...@tropenklinik.de Internet: www.tropenklinik.de --- -Ursprüngliche Nachricht- Von: steve [mailto:st...@steve-ss.com] Gesendet: Freitag, 4. Mai 2012 09:59 An: muel...@tropenklinik.de Cc: 'Jeremy Allison'; samba@lists.samba.org Betreff: Re: AW: [Samba] Samba4 oplocks: LibreOffice and Word file locking On 04/05/12 09:19, Daniel Müller wrote: I do not know exactly what you are trying to do!? You have one Samba4 DC-ADS the master! One samba3 the file and printserver!? Both on a physical host!? Hi Daniel and thanks for the explanation. I want s4 on one box and s3 on another. (I can't see a way of having 2 smb.conf on the same physical box, so we separate them.) Currently I'm administering all this using scripts from the s4 DC under Linux: http://linuxcostablanca.blogspot.com.es/p/s4bind.html It works fine but the ntvfs fileserver that comes with s4 is rather limited. I want to serve files using the s3 fileserver which supports the Posix options I need. That will be on another box or VM. So you just need to let do Samba4 be the authentication and gpo part. Yes The samba3 host has to join as memberserver to the ads of the Samba4. Yep. I can do that. I already have Linux clients joined to the domain. But simply to set the realm and so they can get a keytab using net ads keytab create. Nothing else. It's the [global] section on the s3 fileserver's smb.conf I can't work out! Point the samba3 server to authenticate users to the samba4. This is the bit I'm missing. Is this a line in smb.conf on the s3 box? For the samba4. Login from your admin PC with ads tools from Microsoft installed: I have the profile and home drive mappings setup via a script. Define the home directories on the samba3 host. Those would be everything I have at the moment in the s4 smb.conf except the netlogion and sysvol shares? then remove those shares from the s4 smb.conf? TIA for your patience, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 04/05/12 09:45, Ludek Finstrle wrote: Hi, Thu, May 03, 2012 at 10:16:28AM -0700, Jeremy Allison napsal(a): On Thu, May 03, 2012 at 11:08:49AM +0200, steve wrote: Does this work (Word 2010 sees other opens) if you run the clients against an S3 server ? I'm guessing it will. The current recommended setup is to use S4 as an AD-DC, but S3 joined to the domain as a fileserver. The S3 fileserver code will replace the S4 fileserver before official S4 release. Why not use Samba Frenky? Mix of S4 and S3. I'm using it successfully. It doesn't need any virtualization on IP splitting. And when you use S4 AD-DC + S3 FS why don't you use only different IP in one box isn't it enough? Why virtualization? I think I'd need two smb.conf files. One for the s4 containing netlogon and sysvol and another for s3 to hold the shares. Can I do that on one box? Best regards, Luf Hi Ludek Yes, that's a good idea. I think we're very close to a release of S4 with the integrated s3 fileserver so am trying to decide to wait for that or go ahead with Franky or S3 and S4 on separate boxes. We use a lan of Win and Linux oxes and need to move away from the fileserver that comes with S4. I'm slowly fitting the pieces of all this together. Thanks for the suggestion. I have the Franky wiki open as I write. Difficult to decide. wait or go ahead! Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
Am Freitag, 4. Mai 2012, 10:12:33 schrieb steve: On 04/05/12 09:45, Ludek Finstrle wrote: I think I'd need two smb.conf files. One for the s4 containing netlogon and sysvol and another for s3 to hold the shares. Can I do that on one box? I can't see any point why it should not be possible, but im not shure if all compiled in pathes could be changed during command line options or configuration in your application cases. From my first view it seems you could start different samba instances with different configuration files and working directories etc. by passing command line options - i.e.: --configfile --lockdir --cachedir --statedir --piddir --smb-passwd-file * --private-dir * and other possible options... (* requirement may depend from your setup) If you compile samba byself, you may use different prefixes for your both sambas on the same box just on compile time. hth best regards, Niels. -- --- Niels Dettenbach Syndicat IT Internet http://www.syndicat.com --- signature.asc Description: This is a digitally signed message part. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
Hi Fri, May 04, 2012 at 10:23:37AM +0200, Niels Dettenbach napsal(a): Am Freitag, 4. Mai 2012, 10:12:33 schrieb steve: On 04/05/12 09:45, Ludek Finstrle wrote: I think I'd need two smb.conf files. One for the s4 containing netlogon and sysvol and another for s3 to hold the shares. Can I do that on one box? I can't see any point why it should not be possible, but im not shure if all compiled in pathes could be changed during command line options or configuration in your application cases. From my first view it seems you could start different samba instances with different configuration files and working directories etc. by passing command line options - i.e.: Maybe you can also use -s for S3 or S4 (or both) and you don't need to recompile. I use Franky so I'm not sure if config is enough in separate S3 and S4. E.g for S3: smbd -D -s /etc/samba3/smb.conf Best regards, Luf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 04/05/12 11:09, Ludek Finstrle wrote: Hi Fri, May 04, 2012 at 10:23:37AM +0200, Niels Dettenbach napsal(a): Am Freitag, 4. Mai 2012, 10:12:33 schrieb steve: On 04/05/12 09:45, Ludek Finstrle wrote: I think I'd need two smb.conf files. One for the s4 containing netlogon and sysvol and another for s3 to hold the shares. Can I do that on one box? I can't see any point why it should not be possible, but im not shure if all compiled in pathes could be changed during command line options or configuration in your application cases. From my first view it seems you could start different samba instances with different configuration files and working directories etc. by passing command line options - i.e.: Maybe you can also use -s for S3 or S4 (or both) and you don't need to recompile. I use Franky so I'm not sure if config is enough in separate S3 and S4. E.g for S3: smbd -D -s /etc/samba3/smb.conf Best regards, Luf Hi I'm getting there:-) One other thing: With winbind, do I have to have my home directories where winbind tells me? ie whatever wbinfo -i user gives? Thanks for your patience, Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
Hi Fri, May 04, 2012 at 11:21:13AM +0200, steve napsal(a): One other thing: With winbind, do I have to have my home directories where winbind tells me? ie whatever wbinfo -i user gives? sorry I have no idea. Let's try and you'll see. As I wrote some time ago I don't use winbind. I use Franky with patched pdb_ads and it's enough for me to have nslcd (also patched with striped SID domain prefix + some base rid). I have no domains trusts so this is enough for me. Cheers, Luf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 05/04/2012 11:43 AM, Ludek Finstrle wrote: Hi Fri, May 04, 2012 at 11:21:13AM +0200, steve napsal(a): One other thing: With winbind, do I have to have my home directories where winbind tells me? ie whatever wbinfo -i user gives? sorry I have no idea. Let's try and you'll see. As I wrote some time ago I don't use winbind. I use Franky with patched pdb_ads and it's enough for me to have nslcd (also patched with striped SID domain prefix + some base rid). I have no domains trusts so this is enough for me. Cheers, Luf Hi We don't use winbind either and we also use nslcd (what a superb piece of kit). We simply store the rfc2307 attributes in the dn of the user or group and have setup scripts to manipulate uses and groups in this way. All I'm looking for is an altrernative to the file sever that ships with S4 at the moment. I think the new fileserver will become stable soon. Just looking at the possibilites for having something now rather than wait. Franky on the same box is attractive. Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On Thu, May 03, 2012 at 11:08:49AM +0200, steve wrote: Hi Lan with S4 and built-in file server for Windows clients. nfs for Linux clients. We are using LibreOffice to share documents and file locking works fine. The first guy to open the doc gets the lock and a message is displayed on other clients (windows or Linux) that the file is open. Fine Some users must however use Word 2010 to edit documents. Then file locking doesn't work: anyone can open it. Any combination of clients and any combination of LO or Word. I'm told to turn off client oplocks: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MRXSmb\Parameters OplocksDisabled = 1 However, our win7 clients do not have \Parameters At HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services I see the folders: mrxsmb, mrxsmb10 and ,rxsmb20 opening any of them gives another folder called Enum with Default REG_SZ (value not set) 0REG_SZ Root\LEGACY_MRXSMB\ CountREG_DWORD 0x0001 (1) NextInstance REG_DWORD 0x0001 (1) Any ideas how to turn off oplocks? Or WHY. Does this work (Word 2010 sees other opens) if you run the clients against an S3 server ? I'm guessing it will. The current recommended setup is to use S4 as an AD-DC, but S3 joined to the domain as a fileserver. The S3 fileserver code will replace the S4 fileserver before official S4 release. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On 03/05/12 19:16, Jeremy Allison wrote: On Thu, May 03, 2012 at 11:08:49AM +0200, steve wrote: Does this work (Word 2010 sees other opens) if you run the clients against an S3 server ? I'm guessing it will. The current recommended setup is to use S4 as an AD-DC, but S3 joined to the domain as a fileserver. The S3 fileserver code will replace the S4 fileserver before official S4 release. Jeremy. Hi I can't see how to do that. We currently have a single box S4 which serves both the Linux and Windows clients. The files are in the same folders on the same machine. S4 serves the Win boxes (ntvfs/cifs I think) and nfs the Linux machines. How would I get a separate s3 fileserver to do the same job? If that can be done then can we still keep nfs for our Linux clients? Presumably on the same box as the s3 fileserver? Summary Server1: S4 AD DC Server2: s3 and nfs fileserver joined to Server1 domain Cheers and thanks for your time, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 oplocks: LibreOffice and Word file locking
On Thu, May 03, 2012 at 07:33:53PM +0200, steve wrote: Hi I can't see how to do that. We currently have a single box S4 which serves both the Linux and Windows clients. The files are in the same folders on the same machine. S4 serves the Win boxes (ntvfs/cifs I think) and nfs the Linux machines. How would I get a separate s3 fileserver to do the same job? If that can be done then can we still keep nfs for our Linux clients? Presumably on the same box as the s3 fileserver? Summary Server1: S4 AD DC Server2: s3 and nfs fileserver joined to Server1 domain That's exactly how to do it. You could use VM's to create the fileserver box or the S4 AD-DC. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba