From: Jeremy Allison Date: Thu, 5 Mar 2009 00:57:37 +0000 (-0800) Subject: Fix bug #6154 - zfs does not honor admin users. X-Git-Tag: samba-3.4.0pre1~620 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=badad0a6a6d2b0f0a34b09f83d0ea25596dc9bf6 Fix bug #6154 - zfs does not honor admin users. Jeremy --- diff --git a/source3/smbd/file_access.c b/source3/smbd/file_access.c index fe7ba1cc466..abffcd2f4fd 100644 --- a/source3/smbd/file_access.c +++ b/source3/smbd/file_access.c @@ -34,6 +34,11 @@ bool can_access_file_acl(struct connection_struct *conn, uint32_t access_granted; struct security_descriptor *secdesc = NULL; + if (conn->server_info->utok.uid == 0 || conn->admin_user) { + /* I'm sorry sir, I didn't know you were root... */ + return true; + } + status = SMB_VFS_GET_NT_ACL(conn, fname, (OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION |