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:
[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!