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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-21-2003, 04:44 PM
|
#1
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Rep:
|
samba & NT_STATUS_BAD_NETWORK_NAME
Since updating to rh9 ive been getting incessent complaining from samba configuration. It won't accept any passwords and/or shows only empty directories. Wiping smb.conf clean does nothing to help. Swat ,manual configuration or random gui same thing. the most recent complaint is "NT_STATUS_BAD_NETWORK_NAME".
My configuration is simple as it is a closed network through an internal interface (also used for ip masqu).
# Global parameters
[global]
workgroup = OURHOUSE
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes
[print1|My Printer 1]
path = /tmp
printable = Yes
[/shared]
path = /shared
read only = No
[/home/]
path = /home
heres what happens:
[root@linux root]# smbclient //192.168.1.1/shared
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[OURHOUSE] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[root@linux root]# smbclient //192.168.1.1/shared
added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[OURHOUSE] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
thanks
|
|
|
04-21-2003, 04:51 PM
|
#2
|
Member
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230
Rep:
|
Please check whether the share still exists in the target comp. AFAIK Samba gives that error when it cannot find such a share in the target PC.
try smbclient -L ip address of target
|
|
|
04-21-2003, 04:53 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
My first impulse would be to rename the server
from
Server=[Samba 2.2.7a-security-rollup-fix]
to
Server=[Samba]
...
I haven't got the specs for nmb
naming conventions handy, but
am almost certain there's both
a length restriction and no whitespace
allowed...
Cheers,
Tink
|
|
|
04-21-2003, 04:54 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Correct me if I'm wrong but I have never seen a "/" in a share name like "[/shared]" shouldn't it be "[shared]"? The same goes for home.
|
|
|
04-21-2003, 05:04 PM
|
#5
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Original Poster
Rep:
|
I changed smb.conf to this and still the same.
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/21 15:03:03
# Global parameters
[global]
workgroup = OURHOUSE
server string = linux box
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes
[print1|My Printer 1]
path = /tmp
printable = Yes
[shared]
path = /shared
read only = No
[home/]
path = /home
|
|
|
04-21-2003, 05:09 PM
|
#6
|
Member
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230
Rep:
|
Yes there shouldn't be a / in the share name . It should be [myshare]
|
|
|
04-21-2003, 05:12 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Could you post a chunk from your
samba logfile?
Cheers,
Tink
|
|
|
04-21-2003, 05:27 PM
|
#8
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Original Poster
Rep:
|
i gor in via teminal session on server but host and konquerer only see empty files.
log:
[2003/04/21 15:22:43, 2] smbd/reply.c:reply_special(92)
netbios connect: name1=192.168.1.1 name2=LINUX
[2003/04/21 15:22:43, 2] smbd/reply.c:reply_special(111)
netbios connect: local=192.168.1.1 remote=linux
[2003/04/21 15:22:43, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:43, 0] smbd/service.c:make_connection(381)
make_connection: jacob logged in as admin user (root privileges)
[2003/04/21 15:22:43, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:22:48, 0] smbd/oplock_linux.c:linux_init_kernel_oplocks(287)
Failed to setup RT_SIGNAL_LEASE handler
[2003/04/21 15:22:48, 1] lib/util_sock.c:get_socket_name(977)
Gethostbyaddr failed for 192.168.1.1
[2003/04/21 15:22:48, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:48, 2] smbd/reply.c:reply_special(92)
netbios connect: name1=192.168.1.1 name2=LINUX
[2003/04/21 15:22:48, 2] smbd/reply.c:reply_special(111)
netbios connect: local=192.168.1.1 remote=linux
[2003/04/21 15:22:48, 2] lib/access.c:check_access(329)
Allowed connection from 192.168.1.1 (192.168.1.1)
[2003/04/21 15:22:48, 0] smbd/service.c:make_connection(381)
make_connection: jacob logged in as admin user (root privileges)
[2003/04/21 15:22:48, 1] smbd/service.c:make_connection(636)
linux (192.168.1.1) connect to service shared as user jacob (uid=0, gid=500) (pid 11700)
[2003/04/21 15:22:59, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:22:59, 1] smbd/service.c:close_cnum(677)
linux (192.168.1.1) closed connection to service shared
[2003/04/21 15:23:10, 2] smbd/server.c:exit_server(461)
Closing connections
[2003/04/21 15:23:10, 1] smbd/service.c:close_cnum(677)
linux (192.168.1.1) closed connection to service shared
smb.conf:
# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/21 15:25:39
# Global parameters
[global]
workgroup = OURHOUSE
server string = linuxbox
interfaces = 192.168.1.1
encrypt passwords = Yes
update encrypted = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
log level = 2
log file = /var/log/samba.log
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes
username = jacob
valid users = jacob randi
admin users = jacob randi
guest ok = Yes
hosts allow = randi 192.168.1.1 192.168.1.2 linux
map system = Yes
map hidden = Yes
[print1|My Printer 1]
path = /tmp
printable = Yes
[shared]
path = /shared
read only = No
[home]
path = /home
[homes]
valid users = %S
read only = No
thanx alot you guys!
|
|
|
04-21-2003, 05:35 PM
|
#9
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
What exactly is:
username = jacob
doing in the global section?
if you man smb.conf "username" is not a vaild variable.
|
|
|
04-24-2003, 09:36 PM
|
#10
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
You can do a testparm and see if there are any errors in your config file.
|
|
|
05-19-2009, 09:55 AM
|
#11
|
Member
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Rep:
|
you need
netbios name = your_server_hostname
in smb.conf global configs
|
|
|
All times are GMT -5. The time now is 10:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|