LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-22-2007, 03:00 PM   #1
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 294

Rep: Reputation: 31
Talking smbclient gives NT_STATUS_BAD_NETWORK_NAME - but works with konqueror


Hey all, I've been lurking for months now and you all have helped me so much. Now it's time to be a part of this great community.

I (like many, many others) have had some difficulty with Samba. I have finally been able to get my SuSe box to access and create files on my Debian Samba Server but only if I use Konqueror. The share isn't seen but if I use the url "smb://debian/test/" it will ask for user name and password and everything works find (to my knowledge).

The problem is I cannot get in through the command line with smbclient. It will only give me the NT_STATUS_BAD_NETWORK_NAME error at the end.

My smb.conf (I've cleaned it up removing commented sections):

Quote:
[global]
workgroup = workgroup
server string = %h server
wins support = yes
dns proxy = no
interfaces = 192.168.0.0/8 eth0
log file = /var/log/samba/log.%m
max log size = 500
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
domain logons = yes
load printers = no
socket options = TCP_NODELAY

[homes]
comment = Home Directories
browseable = yes
writable = yes
create mask = 0700
directory mask = 0700
valid users = %S
I've created a user named "test" on the debian server that has a home directory "/home/test/" and given test permissions to r-w-x. I also created the samba user "test" with the password of "test".

I have no firewalls running (I just installed debian with the simplest install and installed samba - that's it).

With Konqueror I use the url:
Quote:
smb://debian/test/
[enter username and password) and it changes it to smb://test@debian/test and I can read and write no problem.

With smbclient I use the command:
Quote:
smbclient //debian/ -Utest test
I've also tried:
Quote:
smbclient //debian/test/ -U test test
and I always end up with:
Quote:
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
*UPDATE*
In the process of writing this I decided to try this:
Quote:
smbclient //debian/test -U test test
Notice the missing trailing slash...

It works!!!! Man - I love this stuff.
Well, thanks anyway - it looks like I figured it out!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NTLM via smbclient works, but doesn't in KDE. mikeyt_333 Linux - General 0 11-01-2005 07:32 PM
smbclient [share] -k works, but nautilus still asks for credentials. mikeyt_333 Linux - Networking 1 09-08-2005 05:48 PM
mount_samba files but smbclient works garnser *BSD 5 02-08-2005 11:16 AM
FC2: smbmount->ERRDOS; smbclient->works fine! WHY? danielson Linux - Networking 3 06-23-2004 10:02 AM
smbclient and konqueror again (slightly different) ShurV Linux - Networking 2 11-20-2003 01:52 AM


All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration