[Samba] Can't modify ms word files with samba 3.3

Jeremy Allison jra at samba.org
Wed Mar 4 17:27:57 GMT 2009


On Wed, Mar 04, 2009 at 08:47:25AM +0100, Olivier Doremieux wrote:
> Hello,
>
> I have the same problem with samba 3.3.0 and 3.3.1. I use to be able to  
> edit some MS Word file on a shared network.
> What should I do to fix this problem? Is there a way to change some  
> config file?

Can you try this patch please ? I'm trying to get more information
about this problem, and this would help me determine what might be
wrong.

Thanks,

Jeremy.
-------------- next part --------------
diff --git a/source/lib/util_seaccess.c b/source/lib/util_seaccess.c
index 0da7442..ab0f09b 100644
--- a/source/lib/util_seaccess.c
+++ b/source/lib/util_seaccess.c
@@ -179,17 +179,20 @@ NTSTATUS se_access_check(const struct security_descriptor *sd,
 			bits_remaining));
 	}
 
-#if 0
-	/* We need to support SeSecurityPrivilege for this. */
 
 	if (access_desired & SEC_FLAG_SYSTEM_SECURITY) {
+#if 0
+		/* We need to support SeSecurityPrivilege for this. */
 		if (user_has_privileges(token, &sec_security)) {
 			bits_remaining &= ~SEC_FLAG_SYSTEM_SECURITY;
 		} else {
 			return NT_STATUS_PRIVILEGE_NOT_HELD;
 		}
-	}
+#else
+		return NT_STATUS_PRIVILEGE_NOT_HELD;
+
 #endif
+	}
 
 	/* a NULL dacl allows access */
 	if ((sd->type & SEC_DESC_DACL_PRESENT) && sd->dacl == NULL) {


More information about the samba mailing list