[Samba] Encrypted logon funny

Andrew Stubbs
2002-09-09T17:32:00Z

I do not understand the following output.


The actual command and error are:

juliet:/mnt # smbmount //compaq/mastertools /mnt/dos -o username=alan
password=eunice
Password:
10300: tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password
pair in a Tree Connect or Session Setup are invalid.)
SMB connection failed


It seems the user validates at the os level , but later fails when using the
locked share - Why ?

Relevant bits of smb.conf

        encrypt passwords = Yes
        security = user
        os level = 33
        map to guest = Bad User
        log file = /var/log/samba/log.%m
        log level = 10
        preferred master = True
        wins support = Yes
        default service = homes
        guest account = smbguest
        hosts allow = ALL

[mastertools]
        path = /u01/mastertools
        writable = yes
        only user = yes
        valid users = alan
        wide links = no

Using smbclient from a linux box to SAMBA on a linux box.

I have tried the "Hour 13" document and all the other readme's and
google
search - tearing my hair out.

Samba Version 2.2.1a, Suse Linux

Much appreciated

Andrew


[2002/09/09 17:15:44, 2] smbd/reply.c:reply_sesssetup_and_X(990)
  Defaulting to Lanman password for alan
[2002/09/09 17:15:44, 4] passdb/pass_check.c:pass_check(718)
  pass_check: Checking (PAM) password for user alan (l=6)
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_start(460)
  smb_pam_start: PAM: Init user: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_start(475)
  smb_pam_start: PAM: setting rhost to: juliet.localnet
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_start(484)
  smb_pam_start: PAM: setting tty
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_start(492)
  smb_pam_start: PAM: Init passed for user: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_auth(509)
  smb_pam_auth: PAM: Authenticate User: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_auth(537)
  smb_pam_auth: PAM: User alan Authenticated OK
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_account(558)
  smb_pam_account: PAM: Account Management for User: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_account(582)
  smb_pam_account: PAM: Account OK for User: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_setcred(609)
  PAM: Account Management SetCredentials for User: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_setcred(629)
  smb_pam_setcred: PAM: SetCredentials OK for User: alan
[2002/09/09 17:15:44, 4] passdb/pampass.c:smb_pam_end(442)
  smb_pam_end: PAM: PAM_END OK.
[2002/09/09 17:15:44, 7] param/loadparm.c:lp_servicenumber(3386)
  lp_servicenumber: couldn't find alan
[2002/09/09 17:15:44, 3] param/loadparm.c:lp_add_home(1830)
  adding home directory alan at /home/alan
[2002/09/09 17:15:44, 10] smbd/password.c:register_vuid(286)
  register_vuid: (501,100) alan ALAN STUSOFT guest=0
[2002/09/09 17:15:44, 10] smbd/password.c:register_vuid(296)
  register_vuid: allocated vuid = 100


and later in the log ...



  check_access: no hostnames in host allow/deny list.
[2002/09/09 17:15:44, 2] lib/access.c:check_access(318)
  Allowed connection from  (192.168.254.254)
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list alan
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list alan
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list alan
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list alan
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list alan
[2002/09/09 17:15:44, 10] lib/username.c:user_in_list(407)
  user_in_list: checking user alan in list
[2002/09/09 17:15:44, 2] smbd/service.c:make_connection(318)
  Invalid username/password for mastertools [alan]