Hello all, I used to have share modes = no on all my application shares as they were accessed for read-only. I particularly put this on my netlogon share after someone got an exclusive lock on part of the login script! I find with 2.2.2 that share modes is no longer allowed and I get smbstatus lock entries for loads of application stuff which people should be locking. What is the 2.2.2 equivalent which turns of all locking on a share. I've got locking = no but that doesn't seem to do the trick. Previous version was good old 1.9.18p10! Cheers, Martin -- Martin Sapsed To have no errors Information Services Would be life without meaning University of Wales, Bangor, LL57 2UX No struggle, no joy. Fax: +44 (0)1248 383826
On Tue, Nov 27, 2001 at 11:06:59AM +0000, Martin Sapsed wrote:> Hello all, > > I used to have > > share modes = no > > on all my application shares as they were accessed for read-only. I > particularly put this on my netlogon share after someone got an exclusive > lock on part of the login script! I find with 2.2.2 that share modes is no > longer allowed and I get smbstatus lock entries for loads of application > stuff which people should be locking. What is the 2.2.2 equivalent which > turns of all locking on a share. I've got > > locking = no > > but that doesn't seem to do the trick. Previous version was good old > 1.9.18p10!I have a fix for this that I'll be putting into 2.2 and HEAD for the next release. Essentially, setting "share modes = no" will turn off deny mode processing and always return "ok". I'm tempted to only allow this on read only shares though.... What do you think ? Jeremy.
Hi Jeremy; I seem to remember someone complaining about this being gone (share modes no) because he had a bunch of people that executed files from a share that was readonly for THEM, but he wanted to be able to login as an admin user to UPDATE the .exe files, and didn't want to kick them all off to do so... So for that situation, the share would have to be readwrite wouldn't it? Don -----Original Message----- From: jra@samba.org [mailto:jra@samba.org] Sent: Tuesday, November 27, 2001 1:00 PM To: Martin Sapsed Cc: samba@lists.samba.org Subject: Re: share modes On Tue, Nov 27, 2001 at 11:06:59AM +0000, Martin Sapsed wrote:> Hello all, > > I used to have > > share modes = no > > on all my application shares as they were accessed for read-only. I > particularly put this on my netlogon share after someone got an exclusive > lock on part of the login script! I find with 2.2.2 that share modes is no > longer allowed and I get smbstatus lock entries for loads of application > stuff which people should be locking. What is the 2.2.2 equivalent which > turns of all locking on a share. I've got > > locking = no > > but that doesn't seem to do the trick. Previous version was good old > 1.9.18p10!I have a fix for this that I'll be putting into 2.2 and HEAD for the next release. Essentially, setting "share modes = no" will turn off deny mode processing and always return "ok". I'm tempted to only allow this on read only shares though.... What do you think ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Tue, Nov 27, 2001 at 11:06:59AM +0000, Martin Sapsed wrote:> Hello all, > > I used to have > > share modes = no > > on all my application shares as they were accessed for read-only. I > particularly put this on my netlogon share after someone got an exclusive > lock on part of the login script! I find with 2.2.2 that share modes is no > longer allowed and I get smbstatus lock entries for loads of application > stuff which people should be locking. What is the 2.2.2 equivalent which > turns of all locking on a share. I've gotI've re-added share modes for 2.2.3. It's in the CVS now if you'd like to test it for your particular app. It's effect is to allow any DENY mode on an open, ignoring the usual effect. This should have the desired effect. Jeremy.
Hello! That somebody was me! I would really like to be able to disable "share modes" locking on selected "admin" shares. The actual problem involves an automated build process. Every night, we fetch the latest code from source control, compile it, and copy the results to a distribution directory. We've got two shares - one for people to use to access the files, and an "admin" share which is used to update the files. We want the update process to succeed, no matter who might be holding a file open by using it. We really need to be able to override an "in use" lock from the read-only share. It isn't just people executing files, either - someone using "less" to read a text file will lock that file and prevent that file from being updated. So Don's got it right - the "admin" share that has "share modes = no" would need to be readwrite, even though the other users would be accessing the same files through a read-only share. Our current workaround is to use two different Samba servers to access the same files via NFS (the two servers are completely unaware of each other's locks, which may be causing additional oplock confusion). - john nelson -----Original Message----- From: "MCCALL,DON (HP-USA,ex1)" <don_mccall@hp.com> To: "'jra@samba.org'" <jra@samba.org>, Martin Sapsed <m.sapsed@bangor.ac.uk> Cc: samba@lists.samba.org Subject: RE: share modes Date: Tue, 27 Nov 2001 13:17:58 -0500 Hi Jeremy; I seem to remember someone complaining about this being gone (share modes no) because he had a bunch of people that executed files from a share that was readonly for THEM, but he wanted to be able to login as an admin user to UPDATE the .exe files, and didn't want to kick them all off to do so... So for that situation, the share would have to be readwrite wouldn't it? Don
Hi I have a problem with catia users, they all can open each other catia files(they work as a team anyone can work on any file), but catia never notifies anyone that the file is already open, so they overwrite each others work. In Windows this is'nt a problem since they get notified if a file is already open. I assume veto oplock files on those catia files would solve this. The problem with users never get notified if a file is already open, does samba have that function? thanks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tommy Fallsen System Administrator Kongsberg Defence & Aerospace Email: tommyf@kongsberg.com TEL: +47 32287783 WEB: http://www.kongsberg.com/eng/kog/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus." - Peter H. Coffin . ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MAILsweeper for the presence of computer viruses. Best regards, Kongsberg Gruppen **********************************************************************