You are not logged in.

#1 2012-06-13 05:55:30

snovik
Member
Registered: 2012-05-06
Posts: 98

[SOLVED] samba stopped working and /etc/samba is missing

Well, the subj. Samba stopped working. I used to mount a drive in fstab but now mount produces the following error "Unable to find suitable address." whatever that means.

I tried to read the docs and realized that I am missing /etc/samba completely. Re-installing/removing & installing did not help.

It all worked at least 2 weeks ago.

Last edited by snovik (2012-06-16 19:44:07)

Offline

#2 2012-06-13 09:30:11

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] samba stopped working and /etc/samba is missing

2 things to try/check:

- What happens if you try to access the relevant share via smbclient?
- What do the logs (/var/log/messages.log) say?


Burninate!

Offline

#3 2012-06-13 17:01:39

snovik
Member
Registered: 2012-05-06
Posts: 98

Re: [SOLVED] samba stopped working and /etc/samba is missing

smbclient says: params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
well there is no such directory as I said above

nothing spotted in the messages.log

Offline

#4 2012-06-16 07:37:47

snovik
Member
Registered: 2012-05-06
Posts: 98

Re: [SOLVED] samba stopped working and /etc/samba is missing

I found some time to dig around. So I got a smb.conf from samba package.

And now after "smbclient -L localhost" I get "Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)"

How come? Anything to do with firewall? I have defaults, i.e. even no iptables installed though have to admit I was playing with firewall in the meantime. Can that be the reason?

Offline

#5 2012-06-16 19:40:06

snovik
Member
Registered: 2012-05-06
Posts: 98

Re: [SOLVED] samba stopped working and /etc/samba is missing

In case it helps anybody. After the plenty of googling and trying this and that I finally managed to make it work.

The refused connection was coming from cups which I had to disable in smb.conf. There are plenty of threads on the internet
"Unable to find suitable address." was coming from the wrong settings on the server to which client could not connect. So the suitable address was really about the server and not client/mount

there was some other minor issues which I can not remember now

Offline

#6 2012-10-03 20:00:43

Wikimig
Developer
From: France
Registered: 2004-12-10
Posts: 77
Website

Re: [SOLVED] samba stopped working and /etc/samba is missing

Also in the intention of helping others, I had the same Error NT_STATUS_CONNECTION_REFUSED

I ran the following to display the tree of samba servers found on the LAN (-d 2 is for log level):
$ smbtree -b -d 2

It shows me samba uses IPv6 addresses. It just so happpens I set an IP restriction on my smb.conf file but only using IPv4 addresses. If I remove the IP filtering it can connect to my SMB shares.

Offline

Board footer

Powered by FluxBB