[Samba] Samba crashes on password change from Windows 2000 clients

Markie markie at notwentytwo.freeserve.co.uk
Mon Apr 28 15:54:30 GMT 2003


Hi, i'm not subscribed to the list so could you please Cc back to me :)

Just discovered this problem today when my brother tried to change his
password. Windows sat there and eventually said that my domain couldn't be
found or something, this seemed very odd so I had a look in the logs and got
this show up...

Apr 27 21:21:42 bone smbd[496]: [2003/04/27 21:21:42, 0]
lib/util_sec.c:assert_gid(114)
Apr 27 21:21:42 bone smbd[496]:   Failed to set gid privileges to (0,65534)
now set to (65534,65534) uid=(0,65534)
Apr 27 21:21:42 bone smbd[496]: [2003/04/27 21:21:42, 0]
lib/util.c:smb_panic(1094)
Apr 27 21:21:42 bone smbd[496]:   PANIC: failed to set gid
Apr 27 21:21:42 bone smbd[496]:
Apr 27 21:21:42 bone smbd[496]:
Apr 27 21:21:42 bone /kernel: pid 496 (smbd), uid 65534: exited on signal 6

For a few times whilst windows was sitting there. I've had a look in
util_sec.c and it appears to be happening somewhere around here, no?

---
static void assert_gid(gid_t rgid, gid_t egid)
{
        if ((egid != (gid_t)-1 && getegid() != egid) ||
            (rgid != (gid_t)-1 && getgid() != rgid)) {
                if (!non_root_mode()) {
                        DEBUG(0,("Failed to set gid privileges to (%d,%d)
now set to (%d,%d) uid=(%d,%d)\n",
                                 (int)rgid, (int)egid,
                                 (int)getgid(), (int)getegid(),
                                 (int)getuid(), (int)geteuid()));
                        smb_panic("failed to set gid\n");
                        exit(1);
                }
        }
}
---

Can anyone suggest what's going on here? I've got a group 0, wheel, and
Samba is running as root.

---
root at bone:/usr/ports/net/samba/work/samba-2.2.8a/source/lib# uname -a
FreeBSD bone.bone.servebeer.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon Apr
14 14:40:33 BST 2003
mrboo at bone.bone.servebeer.com:/usr/obj/usr/src/sys/BONE  i386
---

If you need more information i'll gladly provide it.

Thanks in advance,
Markie



More information about the samba mailing list