[Samba] Prevent ReadOnly DOS attribute from being set

Jeremy Allison jra at samba.org
Wed Jul 5 20:30:34 GMT 2006


On Wed, Jul 05, 2006 at 04:07:54PM -0400, Steven Cardinal wrote:
> We have a third party application that tracks its own licensing through a
> special file it creates. We just recently moved this application (along with
> all of our other user data) from a Win2K server to a Samba 3.0.20 server.
> This application no longer works correctly. What the application is doing is
> creating the lock file when first lauched by a user and then setting the DOS
> ReadOnly attribute. As other instances of the application get launched (by
> other users) it appears that the app tries to unset the ReadOnly attribute,
> add its info to the license file, and then sets it back to readonly.
> 
> 
> Now that we're on Samba, this isn't working. The first set to ReadOnly sets
> the owner bits to read (and the file is owned by the initial user). At that
> point, new users are unable to remove this flag. The group setting is
> correctly set for rwx, but it seems that is insufficient to permit the other
> users to change the RO attribute. (I think I read that Samba will enforce
> the ReadOnly so that only the owner can remove it).
> 
> Can anyone suggest a work-around? I'm willing to move this application to
> its own share with special settings if that will help, although I'd rather
> not have to. The vendor isn't willing to investigate it further (they say
> it's our problem since we aren't on Windows).

Try setting "dos filemode = yes", and also "store dos attributes = yes" on
a filesystem that supports EA's.

Jeremy.


More information about the samba mailing list