win2k joining Samba 2.2.2 PDC problems.

Jeremy Porter jerry at freeside.com
Fri Dec 7 02:07:07 GMT 2001


I'm running FreeBSD 4.4, with Samba 2.2.2 freshly installed, with
the FreeBSD Ports package to install files in correct places.
I've a Win2k system tring to join the domain "FREESIDE"

It will authenticate ok from the win2k command line.
"net use x: \\crypton\homes /USER:FREESIDE\jerry"

It seems to work ok during the first part of joining a domain, i.e.
password verifies, etc, but eventually kicks back with W2k showing:
Login failure: Unknown username or bad password.


The following is the excerpt from Debug=10

[2001/12/07 04:13:10, 10] passdb/pdb_smbpasswd.c:pdb_getsampwuid(1430)
  pdb_getsampwuid: found by name: admin
[2001/12/07 04:13:10, 4] lib/substitute.c:automount_server(161)
  Home server: crypton
[2001/12/07 04:13:10, 4] lib/substitute.c:automount_server(161)
  Home server: crypton
[2001/12/07 04:13:10, 3] smbd/sec_ctx.c:pop_sec_ctx(428)
  pop_sec_ctx (1003, 1004) - sec_ctx_stack_ndx = 0
[2001/12/07 04:13:10, 10] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1453)
  pdb_getsampwrid: search by rid: 5000
[2001/12/07 04:13:10, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(168)
  startsmbfilepwent_internal: opening file /usr/local/private/smbpasswd
[2001/12/07 04:13:10, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(171)
  startsmbfilepwent_internal: unable to open file /usr/local/private/smbpasswd.
Error was Permission denied
[2001/12/07 04:13:10, 0] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1459)
  unable to open passdb database.

Ktrace shows the following:
 1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe7f4,0x47)
  1250 smbd     GIO   fd 22 wrote 71 bytes
       "[2001/12/07 03:23:24, 10] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1453)
       "
  1250 smbd     RET   write 71/0x47
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe484,0x27)
  1250 smbd     GIO   fd 22 wrote 39 bytes
       "  pdb_getsampwrid: search by rid: 5000
       "
  1250 smbd     RET   write 39/0x27
  1250 smbd     CALL  gettimeofday(0xbfbfed9c,0)
  1250 smbd     RET   gettimeofday 0
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe6f4,0x48)
  1250 smbd     GIO   fd 22 wrote 72 bytes
       "[2001/12/07 03:23:24, 10] passdb/pdb_smbpasswd.c:startsmbfilepwent(168\
        )
       "
  1250 smbd     RET   write 72/0x48
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe384,0x48)
  1250 smbd     GIO   fd 22 wrote 72 bytes
       "  startsmbfilepwent_internal: opening file /usr/local/private/smbpassw\
        d
       "
  1250 smbd     RET   write 72/0x48
  1250 smbd     CALL  open(0x81da500,0,0x1b6)
  1250 smbd     NAMI  "/usr/local/private/smbpasswd"
  1250 smbd     RET   open -1 errno 13 Permission denied
  1250 smbd     CALL  gettimeofday(0xbfbfed9c,0)
  1250 smbd     RET   gettimeofday 0
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe6f4,0x47)
  1250 smbd     GIO   fd 22 wrote 71 bytes
       "[2001/12/07 03:23:24, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(171)
       "
  1250 smbd     RET   write 71/0x47
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe374,0x6c)
  1250 smbd     GIO   fd 22 wrote 108 bytes
       "  startsmbfilepwent_internal: unable to open file /usr/local/private/s\
        mbpasswd. Error was Permission denied
       "
  1250 smbd     RET   write 108/0x6c
  1250 smbd     CALL  gettimeofday(0xbfbfee9c,0)
  1250 smbd     RET   gettimeofday 0
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe7f4,0x46)
  1250 smbd     GIO   fd 22 wrote 70 bytes
       "[2001/12/07 03:23:24, 0] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1459)
       "
  1250 smbd     RET   write 70/0x46
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfe484,0x22)
  1250 smbd     GIO   fd 22 wrote 34 bytes
       "  unable to open passdb database.
       "
  1250 smbd     RET   write 34/0x22
  1250 smbd     CALL  gettimeofday(0xbfbff36c,0)
  1250 smbd     RET   gettimeofday 0
  1250 smbd     CALL  geteuid
  1250 smbd     RET   geteuid 1003/0x3eb
  1250 smbd     CALL  write(0x16,0xbfbfecc4,0x3d)
  1250 smbd     GIO   fd 22 wrote 61 bytes

So it seems that its setting the EUID to 1003 (which makes sense) but then
wants to access the smb password file, and can't.  Not sure why this is going
on or where it starts  The debug messages don't seem to point to anything
in particular, and the 32 megs of ktrace output only go so far.

Perhaps its an obivious configuration issue, but I can't see it.




--- jerry at fc.net
Freelance Troublemaker^H^H^H^H^H^shooter




More information about the samba mailing list