[Samba] Samba shares and MS Office 2010 locking

Daniel Müller mueller at tropenklinik.de
Thu Dec 15 00:04:59 MST 2011


Hello,

concerning ms office you will need in shares the sticky bit for groups, ex:
valid users = yourusers yourgroups
directory mask=2770
        force directory mode=2770
        create mask = 2770
        force create mode=2770
        force security mode=2770
        force directory security mode=2770
force group = yourgroups


-----------------------------------------------
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: mueller at tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im
Auftrag von Raffael Sahli
Gesendet: Mittwoch, 14. Dezember 2011 20:12
An: samba at lists.samba.org
Betreff: Re: [Samba] Samba shares and MS Office 2010 locking

On 14.12.2011 20:00, Jason Voorhees wrote:
> Hi people:
>
> I'm using Samba 3.5.11 with some sharing settings like these:
>
> [global]
>          workgroup = MARKETING
>          netbios name = SMBSERVER
>          server string = Samba, OpenLDAP Server
>          obey pam restrictions = Yes
>          passdb backend = ldapsam:"ldap://localhost"
>          passwd program = /usr/sbin/smbldap-passwd %u
>          passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *all*authentication*tokens*updated*
>          client lanman auth = Yes
>          log level = 2
>          log file = /var/log/samba/samba.log
>          time server = Yes
>          printcap name = cups
>          add user script = /usr/sbin/smbldap-useradd -m "%u"
>          delete user script = /usr/sbin/smbldap-userdel "%u"
>          add group script = /usr/sbin/smbldap-groupadd -p "%g"
>          delete group script = /usr/sbin/smbldap-groupdel "%g"
>          add user to group script = /usr/sbin/smbldap-groupmod -m "%u"
"%g"
>          delete user from group script = /usr/sbin/smbldap-groupmod -x
"%u" "%g"
>          set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
>          add machine script = /usr/sbin/smbldap-useradd -w "%u"
>          logon path =
>          logon home =
>          domain logons = Yes
>          preferred master = Yes
>          domain master = Yes
>          wins support = Yes
>          ldap admin dn = cn=admin,dc=marketing-alterno,dc=com
>          ldap delete dn = Yes
>          ldap group suffix = ou=groups
>          ldap idmap suffix = ou=people
>          ldap machine suffix = ou=machines
>          ldap passwd sync = yes
>          ldap suffix = dc=marketing-alterno,dc=com
>          ldap ssl = no
>          ldap user suffix = ou=people
>
> [sharing]
> 	path = /var/samba/sharing
> 	valid users = @accounting, "@Domain Admins"
> 	admin users = "@Domain Admins"
> 	read only = No
> 	inherit permissions = Yes
> 	vfs objects = recycle
> 	recycle:exclude =
*.tmp|*.TMP|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
> 	recycle:versions = yes
> 	recycle:keeptree = yes
> 	recycle:repository = .trash
>
>
> Many times when a user open, modifies and then close a Office 2010
> document (Word, Excel, Power Point), the file keeps locked. A
> different user tries to open the file and gets a error message related
> to locking, read only permissions or something similar.
> After a unknown amount of time (it could be seconds, minutes, i'm not
> sure how long) the locking seems to dissapear. I tried some options
> settings related to file locking without success. There are so many
> options that using the right combination of them to achieve the
> expected result is difficult to me.
>
> Does anybody has experimented and solved this issue? I hope someone can
help me.
>
> Thanks
I had exactly the same problems, maybe 1-2 years ago.  I did an upgrade 
to the newest version, changed my share concept and worked with force 
mode, force group....
And the problem has gone. I don't know if that's a solution for you, 
anyway it worked for me....


-- 
Raffael Sahli
public at raffaelsahli.com

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



More information about the samba mailing list