Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-17-2002, 08:58 PM   #1
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Rep: Reputation: 15
samba configuration problem

Samba is not running correctly. I'm not sure what the problem is, here is a dump of some of my console interaction:

[root@venus sbin]# smbclient -U% -L localhost
added interface ip= bcast= nmask=
Domain=[MAIN] OS=[Unix] Server=[Samba 2.0.6]
tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
[root@venus sbin]# service smb restart
Shutting down SMB services: [FAILED]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services:
[root@venus sbin]# nmbd -D
[root@venus sbin]# smbd -D
[root@venus sbin]# ps -aux | grep nmbd
root 3319 0.1 1.8 1812 904 ? S 18:47 0:00 nmbd
root 3348 0.0 1.0 1304 500 pts/0 S 18:48 0:00 grep nmbd
[root@venus sbin]# ps -aux | grep smbd
root 3350 0.0 1.0 1304 500 pts/0 S 18:48 0:00 grep smbd

I find this confusing. From 'smbclient' I see I have some problem. When restarting, it looks like smb starts but nmbd does not. However, ps reveals that the opposite is the case. (I tried to start them both directly as well.) If I run another smbclient command, the results are the same. I checked my /etc/services and /etc/inet.d files and they both look fine. I have a stripped down smb.conf file that checks out ok with testparm. Functionally, I can see my server from Windoze clients in network neighborhood, but cannot connect (I get asked for a password, which I suppose is a seperate authentication password issue). Any ideas?
Old 03-18-2002, 01:54 PM   #2
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 612

Rep: Reputation: 32

did you think of adding all user which should work with the smb also in smbpasswd (and in passwd)?
why it doesn`t start:
perhaps check your smb.conf file. maybe something is wrong there.
why you can `t connect:
is there a firewall active?
Old 03-18-2002, 06:24 PM   #3
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Original Poster
Rep: Reputation: 15
No firewall active and the samba server and test clients are on the same hub. The smb.conf file looks ok with testparm. It is stripped down to a minimum in my effort to get it working. Here it is:

# Samba config file created using SWAT
# from (
# Date: 2002/03/02 18:19:34

# Global parameters
workgroup = MAIN
# encrypt passwords = yes

comment = for testing only
path = /tmp
read only = no
guest only = yes
guest ok = yes

I don't know, but I don't think the smb.conf file is the reason it won't start.
Old 03-19-2002, 12:40 AM   #4
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
may be problem with your network

The line

Starting NMB services:

shows that there is some problem with your network, check that first.

Last edited by jayakrishnan; 03-19-2002 at 05:24 AM.


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 configuration problem Vijayasarathy Linux - General 3 03-09-2005 11:45 PM
Problem in Samba Configuration Ahmad Gurchani Linux - Networking 2 01-01-2005 08:48 AM
Samba Configuration problem montylee Linux - Networking 12 11-24-2004 05:57 AM
Samba configuration help Krenn Slackware 3 07-30-2004 07:22 PM
samba configuration problem (?) schbond Linux - Networking 3 06-13-2003 08:38 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:59 PM.

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