Machine account/ username.c:hashed_getpwnam

Lisa Becktold {CADIG STAFF} lisa at usna.navy.mil
Sun Jul 4 00:37:42 GMT 1999


Hi:

If I'm running Samba on a Sun/Solaris 2.7 OS, will I have a problem
with machine account name length in /etc/passwd and smbpasswd if
the machine account name is 9 characters, instead of the UNIX 8-
character limitation?    

Unfortunately, the NT machine name is 8 characters long.  That means
when I create a Samba machine account in /etc/passwd and smbpasswd, 
with the usual dollar sign appended to the machine name, the machine
name is 9 characters long.  UNIX/NIS may be truncating it.  This
may account for the errors I'm seeing in my /usr/local/samba/var/log/
smb.log file:

[1999/07/03 20:15:10, 2] smbd/reply.c:reply_special(140)
  netbios connect: name1=HERMES           name2=PC109S04       
[1999/07/03 20:15:10, 5] lib/username.c:hashed_getpwnam(233)
  getpwnam(pc109s04)
[1999/07/03 20:15:10, 3] lib/username.c:build_passwd_hash_table(83)
  Building passwd hash table
[1999/07/03 20:15:10, 3] lib/username.c:build_passwd_hash_table(95)
  Building passwd hash table for the first time
[1999/07/03 20:15:11, 5] lib/username.c:hashed_getpwnam(255)
  pc109s04 not found
[1999/07/03 20:15:11, 5] lib/username.c:hashed_getpwnam(233)
  getpwnam(pc109s04)
[1999/07/03 20:15:11, 5] lib/username.c:hashed_getpwnam(255)
  pc109s04 not found
[1999/07/03 20:15:11, 5] lib/username.c:hashed_getpwnam(233)
  getpwnam(PC109S04)

Hmmmm....I see a lot of this, without any drastic error messages.  I 
can't log into the Samba domain from the NT client, but I
can log on as local and access the hermes shares from Network
Neighborhood.    

Or is this hashed_getpwnam activity simply a result on activating
password level and username level?

I'm wondering if this is why I can't log into domain from NT client
that is a member of the Samba domain (2.1.0-prealpha).

THANKS for any info...

Lisa Becktold


    ----------------------------------------------------------
      Lisa M. Becktold - lisa at usna.navy.mil, (410) 293-6480
               United States Naval Academy - CADIG          
    590 Holloway Road, Rickover Hall, Annapolis, MD 21402-5000
    ----------------------------------------------------------


More information about the samba-technical mailing list