From badad0a6a6d2b0f0a34b09f83d0ea25596dc9bf6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 Mar 2009 16:57:37 -0800 Subject: [PATCH] Fix bug #6154 - zfs does not honor admin users. Jeremy --- source3/smbd/file_access.c | 5 +++++ 1 file changed, 5 insertions(+) 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 | -- 2.11.4.GIT