Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba.. Big problems

Status
Not open for further replies.

vfear

Technical User
Feb 9, 2001
159
US
I have samaba running on redhat 7.2.. I also have webmin installsed.. I edited the smb.conf and I can see the redhat machine in network negiborhood but I cant get to it. I also try getting to it via the ip and nope cant get to it that way either. when I try to get to it via the icon in network negiboorhood it says network path not found.. please help I am going <crazy .. thanks
 
Please someone help, I am still having the same problem. I can ping the machine from the others. I dont understand why samba wont work.. Thanks..

 
What does your /etc/samba/smb.conf file look like? When you start samba, check the logs for possible clues. Also, make sure you have this in the smb.conf file:

[global]
hosts allow = 127.0.0.1 IP.OFYOUR.SUBNET. Bruce Garlock
bruceg@tiac.net
 
I have all that .. it looks like this
[global]
workgroup = technology
netbios name = RedHat
server string = redhat server
security = share
log file = /var/log/samba/log/
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

dns proxy = no
wins support = yes
hosts allow = 192.168.1.*
hosts deny = none
guest ok = no
[testuser]
comment = Test User Folder
path = /home/testuser
guest ok = yes
create mode = 0664
printable = no

[Permissions Test]
comment = permissions test
path = /root/
guest ok = no
browseable = yes
guest ok = no
browseable = yes
.. I dont understand what the problem is ..samba is normally easy.
 
Hi

I had simular problems once, and my problem was im smb.conf:
hosts allow = 127. 192.168.1

I overlooked the missing period after my subnet for quite a while. After several hours of troubbleshooting, it's frustrating to find such a simple mistake... :S
When I corrected it to:
hosts allow = 127. 192.168.1.
it all worked like it should.

-katamann
 
Hi again, didn't read your config good enough.
I think the asterix should go, and you should add the loopback interface.

Try change the hosts allow to:
hosts allow = 127. 192.168.1

Does that help???

-katamann
 
Nope it still wont work.. and now I cant even see the redhat machine in network negiborhood...Can you send me your smb.conf ?? or think of some other solutions please help :(
 
Have you looked at your logs? What are you seeing in:

/var/log/samba/log.nmb
/var/log/samab/log.smb

Is the port open? Do you have another *nix machine on that network? if so, try 'telnet server 139' and if you can connect, then the port is open. If not, you need to open it. Bruce Garlock
bruceg@tiac.net
 
[2002/04/11 23:56:55, 0] param/loadparm.c:map_parameter(1923)
Unknown parameter encountered: &quot;nebios name&quot;
[2002/04/11 23:56:55, 0] param/loadparm.c:lp_do_parameter(2548)
Ignoring unknown parameter &quot;nebios name&quot;
[2002/04/11 23:56:55, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17167
[2002/04/11 23:56:55, 0] lib/pidfile.c:pidfile_create(87)
ERROR: nmbd is already running. File /var/cache/samba/nmbd.pid exists and process id 17115 is running.
[2002/04/11 23:57:01, 0] param/loadparm.c:map_parameter(1923)
Unknown parameter encountered: &quot;nebios name&quot;
[2002/04/11 23:57:01, 0] param/loadparm.c:lp_do_parameter(2548)
Ignoring unknown parameter &quot;nebios name&quot;
[2002/04/11 23:57:01, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17211
[2002/04/11 23:57:01, 0] lib/pidfile.c:pidfile_create(87)
ERROR: nmbd is already running. File /var/cache/samba/nmbd.pid exists and process id 17115 is running.
[2002/04/11 23:58:39, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(405)
*****

Samba name server REDHAT is now a local master browser for workgroup MYGROUP on subnet 192.168.1.10

*****
[2002/04/11 23:59:05, 0] param/loadparm.c:map_parameter(1923)
Unknown parameter encountered: &quot;nebios name&quot;
[2002/04/11 23:59:05, 0] param/loadparm.c:lp_do_parameter(2548)
Ignoring unknown parameter &quot;nebios name&quot;
[2002/04/11 23:59:05, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17441
[2002/04/11 23:59:05, 0] lib/pidfile.c:pidfile_create(87)
ERROR: nmbd is already running. File /var/cache/samba/nmbd.pid exists and process id 17115 is running.
[2002/04/11 23:59:27, 0] param/loadparm.c:map_parameter(1923)
Unknown parameter encountered: &quot;nebios name&quot;
[2002/04/11 23:59:27, 0] param/loadparm.c:lp_do_parameter(2548)
Ignoring unknown parameter &quot;nebios name&quot;
[2002/04/11 23:59:27, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17477
[2002/04/11 23:59:27, 0] lib/pidfile.c:pidfile_create(87)
ERROR: nmbd is already running. File /var/cache/samba/nmbd.pid exists and process id 17115 is running.
[2002/04/12 00:00:57, 0] nmbd/nmbd.c:sig_term(65)
Got SIGTERM: going down...
[2002/04/12 00:00:57, 0] param/loadparm.c:map_parameter(1923)
Unknown parameter encountered: &quot;nebios name&quot;
[2002/04/12 00:00:57, 0] param/loadparm.c:lp_do_parameter(2548)
Ignoring unknown parameter &quot;nebios name&quot;
[2002/04/12 00:00:57, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17548
[2002/04/12 00:06:46, 0] nmbd/asyncdns.c:start_async_dns(150)
started asyncdns process 17825


Here are the errors I am seeing.. can someone send me a fresh new smb.conf .. or what do you think I need ??
 
Here's one error: Ignoring unknown parameter &quot;nebios name&quot;

Should be: netbios name, not nebios name

Also, according to this, SAMBA was already running. Try restarting it: 'service smb restart' or /etc/rc.d/init.d/smb restart

Also, hosts allow, should look like this:

hosts allow = 127. 192.168.1. Bruce Garlock
bruceg@tiac.net
 
it looks like its getting a nebios error but I have netbios in smb.conf ????
 
I fixed all those things and I am still getting a network path is not accessible error... what should i do?? should I reinstall redhat ?? I have triend everything I can think of
 
Whoa - hold on a sec.. You should not have to re-install. This is a config issue somewhere, we just need to look at everything.

Where you able to connect to port 139 from a different machine?

What does 'smbclient -L serverip' (ececute this on the server) give you?

Bruce Garlock
bruceg@tiac.net
 
Whoa - hold on a sec.. You should not have to re-install. This is a config issue somewhere, we just need to look at everything.

Where you able to connect to port 139 from a different machine?

What does 'smbclient -L serverip' (execute this on the server) give you?

What's your /etc/hosts file look like? Bruce Garlock
bruceg@tiac.net
 
when I did the smbclient -L server ip this is what i got
[root@RedHat etc]# smbclient -L 192.168.1.10
added interface ip=192.168.1.10 bcast=192.168.1.255 nmask=255.255.255.0
Password:
Domain=[THEDARKSIDE] OS=[Unix] Server=[Samba 2.2.1a]

Sharename Type Comment
--------- ---- -------
testuser Disk Test User Folder
Permissions T Disk permissions test
IPC$ IPC IPC Service (Samba 2.2.1a)
ADMIN$ Disk IPC Service (Samba 2.2.1a)

Server Comment
--------- -------
LINUX Samba 2.2.1a

Workgroup Master
--------- -------
THEDARKSIDE LINUX


How do I try to connect on port 139 ??
 
Also, make sure SAMBA is fully shutdown, next time you restart it. Those errors say that SAMBA was already running, so maybe it did not get shutdown properly. DO this:

'/etc/rc.d/init.d/smb stop'
'ps -ef|grep smb'
'ps -ef|grep nmb'

If anything is still running, kill it off:

'kill -15 pid'

Repeat the ps -ef|grep steps after killing everything off. If something is still running, give it a 'kill -9 pid'

Check once again, if something is still running, then you may have a hung process, and need to reboot. This is doubtful. If no processes are running, do a:

'/etc/rc.d/init.d/smb start'

and check the logs for errors. Bruce Garlock
bruceg@tiac.net
 
Some of this does not match what you posted in your smb.conf file. Are you sure of your post with the smb.conf file? For example, for workgroup, your smb.conf post says &quot;technology&quot; but this says &quot;THEDARKSIDE&quot; which one is it? Bruce Garlock
bruceg@tiac.net
 
when I do the first command you gave me there is a ton of services running and I see smbd -D, nmbd -D , and nmbd -D .. what is the full command to kill these process'
 
its the darkside.. I have changed it in the last 15 mins
 
Ok, and you used /etc/rc.d/init.d/smb stop' to stop SAMBA, right? Now get rid of whats left, by:

kill -9 pid, where pid is the process id of the command running ex:

ps -ef|grep smb
root 17242 9547 0 15:25 ? 00:00:00 smbd -D

kill -9 17242

ps -ef|grep nmb
[root@linux samba]# ps -ef|grep nmb
root 9558 1 0 Apr07 ? 00:00:24 nmbd -D
root 9561 9558 0 Apr07 ? 00:00:00 nmbd -D

kill -9 9558
kill -9 9561

Then verify everything is killed, by repeating the ps -ef|grep smb and ps -ef|grep nmb

If anything is still running, kill it off. You are also going to have to remove a file:

rm /var/cache/samba/nmbd.pid Bruce Garlock
bruceg@tiac.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top