allowing full access to files

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu Mar 22 15:01:07 GMT 2001


Hi Joe,
the share option 'share modes' control whether a file is opened using this
kind of 
lock; it's NOT recommended to turn this off, because you could then have the
situation
where 2 people could open the file and modify it at the same time, and get
data corruption
on the file.  However, since it's a share option, you COULD make a share to
a directory that has ONLY this file (or otherfiles that you guarantee will
only be accessed for writing by a single user) and set share modes = no  for
that share. Be aware that some ms applications will fail if they cannot
verify that they got this type of lock however - you'll just have to
experiment to see if your application will allow this.
Hope this helps,
Don

-----Original Message-----
From: Joe_Pfaltzgraff at patapsco.com [mailto:Joe_Pfaltzgraff at patapsco.com]
Sent: Wednesday, March 21, 2001 4:09 PM
To: samba at us5.samba.org
Subject: allowing full access to files






Joe Pfaltzgraff at PATAPSCO
03/21/2001 04:08 PM

Here is the situation:

/samba/users/personA/Phone.doc (0644)
/samba/public/Phone.doc (symlink to above file)

PersonB opens the Phone.doc in the public share with read-only access.
PersonA
wants to open the Phone.doc in their user area with full access in order to
modify the file.  However Word will only open the file read-only.  When I
check
smbstatus, it shows that PersonB has the file open and the DenyMode =
DENY_WRITE.  Is there a a way to prevent personB from obtaining any lock on
the
file, so personA can have full access to it?

 I've tried "fake oplocks" but it isn't an oplock that the person has on the
file.

I thought that by having personB access the file through a symlink, samba
would
lock it as a seperate file from the original file, But I guess that samba is
too
smart for that.

Any help or ideas will be greatly appreciated.

Thanks,
Joe Pfaltzgraff



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list