[Samba] Auth fail getpwuid(3000007) failed

Rowland Penny rowlandpenny at googlemail.com
Fri May 2 03:21:06 MDT 2014


On 02/05/14 09:38, Leander Schäfer wrote:
> Hi
>
> sorry to bother, but all of a sudden after a fresh install of samba 
> with the regular smb4.conf it keeps on failing when users try to 
> authenticate:
>
>
> smbclient -U MyUser \\\\MyServerName\\MyShare MyPassword
> session setup failed: NT_STATUS_UNSUCCESSFUL
>
> [...]
>
>   check_ntlm_password:  authentication for user [MyUser] -> [MyUser] 
> -> [MyUser] succeeded
> [2014/05/02 10:29:40.930648,  3] 
> ../auth/ntlmssp/ntlmssp_sign.c:547(ntlmssp_sign_init)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2014/05/02 10:29:40.930671,  3] 
> ../auth/ntlmssp/ntlmssp_util.c:34(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0x60088215
>     NTLMSSP_NEGOTIATE_UNICODE
>     NTLMSSP_REQUEST_TARGET
>     NTLMSSP_NEGOTIATE_SIGN
>     NTLMSSP_NEGOTIATE_NTLM
>     NTLMSSP_NEGOTIATE_ALWAYS_SIGN
>     NTLMSSP_NEGOTIATE_NTLM2
>     NTLMSSP_NEGOTIATE_128
>     NTLMSSP_NEGOTIATE_KEY_EXCH
> [2014/05/02 10:29:40.930799,  4] 
> ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
>   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2014/05/02 10:29:40.930876,  4] 
> ../source3/smbd/sec_ctx.c:216(push_sec_ctx)
>   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
> [2014/05/02 10:29:40.930905,  4] ../source3/smbd/uid.c:495(push_conn_ctx)
>   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
> [2014/05/02 10:29:40.930926,  4] 
> ../source3/smbd/sec_ctx.c:316(set_sec_ctx)
>   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
> [2014/05/02 10:29:40.930947,  5] 
> ../libcli/security/security_token.c:53(security_token_debug)
>   Security token: (NULL)
> [2014/05/02 10:29:40.930968,  5] 
> ../source3/auth/token_util.c:629(debug_unix_user_token)
>   UNIX token of user 0
>   Primary group is 0 and contains 0 supplementary groups
> [2014/05/02 10:29:40.931099,  4] 
> ../source3/smbd/sec_ctx.c:424(pop_sec_ctx)
>   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2014/05/02 10:29:40.931611,  1] 
> ../source3/auth/token_util.c:430(add_local_groups)
>   SID S-1-5-21-2799780924-1191006566-1534516595-1102 -> 
> getpwuid(3000007) failed
> [2014/05/02 10:29:40.931654,  3] 
> ../source3/auth/token_util.c:316(create_local_nt_token_from_info3)
>   Failed to finalize nt token
> [2014/05/02 10:29:40.931677,  1] 
> ../source3/smbd/sesssetup.c:276(reply_sesssetup_and_X_spnego)
>   Failed to generate session_info (user and group token) for session 
> setup: NT_STATUS_UNSUCCESSFUL
>
> [...]
>
> What's wrong here?! Any hint is geartfully appreciated ;)
>
> Kind Regards
Hi, have you tried:

smbclient \\\\MyServerName\\MyShare -UMyUser%MyPassword

Rowland


More information about the samba mailing list