Public bug reported: Binary package hint: samba
Hi there is a bug in samba that not allow a user with corret user rights to manipulate (access, modify etc) local groups this is the upstream fix http://build.samba.org/?function=diff;tree=samba_3_0;date=1153742720;author=jerry;revision=17217 i adapted this patch to apply to samba version of dapper --- samba-3.0.22/source/rpc_server/srv_samr_nt.c 2006-02-20 21:33:22.000000000 +0100 +++ samba-3.0.22.fix/source/rpc_server/srv_samr_nt.c 2006-07-26 00:23:35.000000000 +0200 @@ -3481,6 +3481,8 @@ uint32 acc_granted; + BOOL status; + /* find the policy handle. open a policy on it. */ if (!get_lsa_policy_samr_sid(p, &q_u->alias_pol, &alias_sid, &acc_granted, NULL)) return NT_STATUS_INVALID_HANDLE; @@ -3492,9 +3494,13 @@ DEBUG(10, ("sid is %s\n", sid_string_static(&alias_sid))); - if (!pdb_enum_aliasmem(&alias_sid, &sids, &num_sids)) - return NT_STATUS_NO_SUCH_ALIAS; + become_root(); + status = pdb_enum_aliasmem(&alias_sid, &sids, &num_sids); + unbecome_root(); + if (!status) + return NT_STATUS_NO_SUCH_ALIAS; + sid = TALLOC_ZERO_ARRAY(p->mem_ctx, DOM_SID2, num_sids); if (num_sids!=0 && sid == NULL) { SAFE_FREE(sids); ** Affects: samba (Ubuntu) Importance: Untriaged Status: Unconfirmed -- local group not accessible with correct user rights https://launchpad.net/bugs/54121 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs