passwords for NT and AIX

Douglas, Jane A. (Jane) douglaja at timken.com
Tue Apr 25 14:13:35 GMT 2000


     I've finally gotten Samba (version 1.9.18p4) working on a RS/6000 server running AIX version 4.3.2, for a group of Windows NT 4.0 workstations on build 5 to access some shared directories.  Everything works fine when I set them up - I have
 
     encrypt passwords = yes
     smb passwd file = /usr/local/samba/private/smbpasswd

in my smb.conf, added the passwords to the smbpasswd file, and it seems to recognize the encrypted password from NT and give the users the access they need.
     The problem comes when I tried implementing the syncing of Unix and Samba passwords.  I added

   unix password sync = yes
   passwd chat = *New*password %n\n *new*password* %n\n
   passwd program = /usr/bin/passwd %u

I was hoping that the users could telnet into the server and just use "smbpasswd" to change both passwords, but it appears that it doesn't change the unix password, and gives no error message telling them it failed.  The error log contains these three lines from their attempt:

   Can't set uid (AIX3)
   password changing not compiled in (user=username)
   Can't set uid (AIX3)

When they try to attach, they get 
   
   ERRSRV - ERRbadpw
   bad password name/password pair in tree connect or session setup

  I've searched the Samba site, and can't find anything about AIX, and darned little about setting up access for NT build 5.  I'm concerned that maybe I can't sync the passwords, because if the chat is changing the unix password as root, in AIX the root "passwd username" command actually only sets an initial password, which the user must sign in with and immediately re-set to something else.
  Any help would be greatly appreciated.


Jane Douglas - IT Specialist
Phone - 603-352-0310 x388
Fax - 603-355-4534
E - douglaja at timken.com
  


More information about the samba mailing list