Setting up Samba

Adam Getchell acgetchell at
Wed Aug 25 00:25:23 GMT 1999

Hello all,

I've set perms on /home/samba/private and /home/samba/private/smbpasswd, and
made smbpasswd with the script. I'm on the third step of the diagnostic test at and I'm getting this error
message right after I enter root or user password (doesn't matter which):

session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect

According to the docs:

"If you get a error message containing the string "Bad password" then
you probably have either an incorrect "hosts allow", "hosts deny" or
"valid users" line in your smb.conf, or your guest account is not
valid. Check what your guest account is using "testparm" and
temporarily remove any "hosts allow", "hosts deny", "valid users" or
"invalid users" lines."

Now, having run testparm I have these lines:

      "guest account = nobody
        invalid users =
        valid users =
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =Y"

So I think my guest account is the culprit. In /etc/smb.conf there's the
guest=pcguest which is currently commented out.

Now, to get around having to sync passwords between *nix and NT, I'm trying to
follow the directions given in DOMAIN_MEMBER.txt. Unfortunately, I get this

[root at hapkido samba]# smbpasswd -j HR -r DYLAN
cli_nt_setup_creds: auth2 challenge failed
modify_trust_password: unable to setup the PDC credentials to machine DYLAN. Error was : NT_STATUS_NO_TRUST_SAM_ACCOUNT.
1999/08/24 17:46:28 : change_trust_account_password: Failed to change password for domain HR.
Unable to join domain HR. 

However, my samba server appears fine in Server Manager on NT.

Any tips to untangle this?


*	Adam Getchell
*	acgetchell at
"Invincibility is in oneself, vulnerability in the opponent." -- Sun Tzu

More information about the samba mailing list