How do you run smbpasswd?

Charles B. Schweizer chas at ccrc.wustl.edu
Wed Aug 4 18:01:44 GMT 1999


First of all, I am running Samba 2.0.5a on Solaris 7 (or trying to, at 
least).  I put appropriate entries in /etc/services and /etc/inetd.conf to 
get Samba running.


I can't seem to use smbpasswd as a normal user to set my encrypted password 
in the smbpasswd file (or as root with "-r").  First of all, the 
permissions on /usr/local/samba/bin did not allow anyobody to browse the 
directory except root, so I added a+rx.  Then when I tried to run smbpasswd 
as a normal user, it complained that it could not access smb.conf and 
codepage.850 (which it should because smbd should run as root), so I 
changed the permissions for those two files (and the directory structure to 
those files) to allow access for any user.  Then smbpasswd would run 
without complaints, but after it took my old password (which was empty) and 
new password twice, it gave a bad password error message.  My entry in 
smbpasswd has "NO PASSWORDXXXX....." with flags "NU", and here is my 
smb.conf file:

[global]
        workgroup = CCRC
        netbios name = CASHEW
        server string = Enterprise 450 [%v]
        encrypt passwords = Yes
        null passwords = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        guest account = guest
        hosts allow = 128.252.169.

[homes]
        comment = Unix home directory space
        path = %H
        valid users = %S
        read only = No
        create mask = 0600
        directory mask = 0700
        locking = No

The specific error is:
machine 127.0.0.1 rejected the session setup. Error was : ERRSRV - ERRbadpw 
(Bad password - name/password pair in a Tree Connect or Session Setup are 
invalid.).
Failed to change password for chas

I was able to set the root password w/o the -r option, but then when I try 
to reset it with the -r option, it also fails, so I don't think it has to 
do with the empty password.

Can anybody tell me what's up with this, or how I can figure out what the 
problem is?

Thanks,
  Chas



More information about the samba mailing list