[PATCH]:Deleting member from its primary group on 3.0.1
Jianliang Lu
j.lu at tiesse.com
Mon Dec 22 09:28:46 GMT 2003
This patch will solve the following problem:
When you use usrmgr to delete a member from a group, that is the primary
group of such user, you will get a "ACCESS DENIED" error code. The Windows
NT allow this operation while Samba did not.
-->Patch:
--- source/lib/username.c.orig Thu Dec 18 18:11:58 2003
+++ source/lib/username.c Thu Dec 18 18:13:14 2003
@@ -443,16 +443,19 @@
DEBUG(10,("user_in_unix_group_list: checking user %s in group %s\n", user,
gname));
/*
* We need to check the users primary group as this
* group is implicit and often not listed in the group database.
*/
+ /*
if (pass) {
if (strequal(gname,gidtoname(pass->pw_gid))) {
DEBUG(10,("user_in_unix_group_list: group %s is primary group.\n",
gname ));
return True;
}
}
+ */
user_list = get_users_in_group(gname);
if (user_list == NULL) {
Cheers,
Jianliang Lu
TieSse s.p.a
Via Jervis, 60 - 10015 Ivrea (To) - Italy
j.lu at tiesse.com
luj at libero.it
http://www.tiesse.com
More information about the samba-technical
mailing list