patch to workaround no security info

Paul Herman pherman at
Thu Sep 6 15:59:01 GMT 2001

Hi guys,

I ran into a problem when a W2K Netscape tries to save it's
bookmark file over a samba share (like say, a home directory), I

  smbd/posix_acls.c:unpack_nt_owners(421) unpack_nt_owners: no security info sent !

Searching the web reveals that other people have similar problems,
apparently with Photoshop and Word, as well.  I don't know much
about SMB stuff, but I figure if no security information is sent,
then it shouldn't fail, just do a NOOP.  Am I correct in this
thinking?  Otherwise, the applications believe the file save/update
failed, which causes problems when in fact it was sucessful.  Yes?

Patch against 2.2.1a follows, seems to work fine.  I'm testing it
now.  Thoughts?


diff -r -u /tmp/samba-2.2.1a/source/smbd/posix_acls.c samba-2.2.1a/source/smbd/posix_acls.c
--- /tmp/samba-2.2.1a/source/smbd/posix_acls.c	Thu Jul  5 19:02:02 2001
+++ samba-2.2.1a/source/smbd/posix_acls.c	Thu Sep  6 15:40:39 2001
@@ -2014,8 +2014,15 @@
 	 * Unpack the user/group/world id's.

-	if (!unpack_nt_owners( &sbuf, &user, &grp, security_info_sent, psd))
-		return False;
+	if (!unpack_nt_owners( &sbuf, &user, &grp, security_info_sent, psd)) {
+		DEBUG(3,("set_nt_acl: will try to use original owners\n") );
+		sbuf.st_mode = orig_mode;
+		sbuf.st_uid = orig_uid;
+		sbuf.st_gid = orig_gid;
+		user = orig_uid;
+		grp = orig_gid;
+		}

 	 * Do we need to chown ?

More information about the samba-technical mailing list