LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-18-2006, 10:24 AM   #1
GoHskrs
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora Core 5
Posts: 5

Rep: Reputation: 0
smbclient gets NT_STATUS_LOGON_FAILURE, only in tar mode


Hi all -

I have an odd issue using smbclient to connect to a Windows 2000 and a Windows XP machine.
$ smbclient //machine/service -U my_user_id%my_password
Domain=[DOMAIN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
and then I can browse directories, perform 'ls', 'cd', 'get', etc. commands.

However, as part of my network backup, I also use the tar functionality of smbclient, and that doesn't work so well:
$ touch /tmp/flag
$ smbclient //machine/service -U my_user_id%my_password -TcN /tmp/flag ./test.tar
Getting files newer than Tue Apr 18 09:57:10 2006
session setup failed: NT_STATUS_LOGON_FAILURE
and I know it's a valid user ID and password because it's the same one I used in the prior command. Same behaviour occurs under Windows 2000 and Windows XP. The user ID is in the Administrators group on both the 2000 and XP boxes, and has inherited permissions to read everything on the share.

The system event viewer on the XP box shows:

Logon Failure:
Reason: Unknown user name or bad password
User Name: my_user_id
Domain: DOMAIN
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NWV1_0
Workstation Name: WORKSTATION

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Same results if I store the user ID and password in a file and then use the -A flag on the smbclient command line.

Interestingly, if I only log in with the user ID (so that smbclient will prompt me for the password), it works as expected in interactive mode, but in tar mode, it never prompts me for a password -- it just fails right away.

The tar functionality worked under FC3 (don't know which version of the Samba suite), but fails under FC5 (smbclient --version returns Version 3.0.22-1.fc5). I'm wondering if maybe something changed in the Samba suite that affects the way it authenticates in interactive mode, vs. what it does in 'tar' mode.

Me confundo mucho ...
 
  


Reply

Tags
samba, smbclient


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba NT_STATUS_LOGON_FAILURE...Help please nikd Linux - Networking 5 01-14-2010 12:25 AM
Samba has NT_STATUS_LOGON_FAILURE dwynter Linux - Networking 22 12-16-2007 02:01 PM
Exclude file types in smbclient tar UltramaticOrange Linux - Networking 1 04-09-2006 04:11 PM
tar, cannot change mode to XXXX bit7 Linux - Software 3 02-12-2003 01:51 PM
smbclient mput quiet mode? jess_wundring Linux - General 1 10-29-2002 08:37 PM


All times are GMT -5. The time now is 01:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration