Samba will not connect to one member of my network
A strange thing happened since I upgraded from Ubuntu 13.10 to 14.04, Samba will no longer connect to my little NAS that runs Snake OS (a cut down Linux variant). It simply times out and no shares are accessible even though the little NAS shows up in the listing under networks on the desktop.
I can mount the NAS as an FTP server and then download files, but uploads are no longer possible. Maybe part of the problem is that the NAS shows up as a NT4.2 server rather than a Samba or Windows XP server, but that never seemed to have been a problem in the past and is no problem to my other machines, three of which are Windows XP and another is a Linux notebook. Nor do I have problems accessing the NAS with any of our three Android devices. I would be grateful for any help in solving this annoying problem. Please note that I am no Linux or networking expert, so please keep it simple. |
Is there any error message in Smaba log or dmesg?
|
Thanks for looking at this.
Quote:
Could you give me some details as to where to look for these and the exact names of the files you want me to post? Anyhow, via the Linux Desktop - Network - I can see the NAS, but when I click on it in order to open it I get this: Code:
Unable to access location. Code:
Oops! Something went wrong. |
It look like path is wrong. You can use smbclient or cifs mount to confirm it.
Following link tell me how to setup smbclient or cifs mount for Samba access. https://help.ubuntu.com/community/Sa...mbaClientGuide The Samba log is on server side and should be under /var/log/smaba. |
Hello nini09, please find following the output from dmesg | tail:
Code:
paul@Hermes-III:~$ dmesg | tail Quote:
Unfortunately I had no luck mounting the NAS using these instructions; in fact I started getting errors come up at boot time, which necessitated changing things back to what they were. In addition I tried to install SMBFS, just in case that caused the problem, bur Ubuntu stated that this area was already covered and refused to do so. Quote:
|
The message might be issue, systemd-hostnamed[2218]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
you should resolve it. nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing hostname resolution for the locally configured system hostname as returned by gethostname(2) There are two possible solutions: You may have not (or incorrectely) configured your hostname in /etc/hosts. Correcting that may resolve this. Another way, as the warning suggests, is to install nss-myhostname, which is referred as libnss-myhostname. |
Thanks for that information. Have given this attention as follows:
Quote:
Quote:
Here is my "smbtree" listing after the above changes, for your interest. Code:
paul@Hermes-III:~$ smbtree Code:
Conversion error: Incomplete multibyte sequence() Paul. |
Try following two solutions
1)edit /etc/hosts file add computer ip address and name in hosts file. Save and exit. Sample ip and name: 192.168.120.65 blablaPcName 2)edit /etc/nsswitch.conf a) Look for this line: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 b)Add wins so it looks like this: hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4 c)Install the "winbind" package d)Reboot or restart your network. |
Thanks for that, here is the follow-up:
Quote:
Code:
# Quote:
Quote:
I thought I would post the following. just in case it gives any hints of the underlying problem: Code:
paul@Hermes-III:~$ dmesg | tail Code:
paul@Hermes-III:~$ smbtree -d3 Regards, Paul. |
The client can't connect to GWYDION, can it? But the client can connect to other server, right?
If so, please check following thing. Check "dos charset" and "unix charset" parameter. Have you correcly linked libiconv or iconv with Samba? |
Quote:
I am afraid I am not sure how to do these things; I have been following directions in other posts where I can, but some of these are clearly outside my depth and I therefore do not do them for fear of disabling or compromising other functions of the Ubuntu machine, which is an important workhorse. So if you could give me some step-by-step guides I'd be grateful. Paul P.S.Managed to install SMBFS, but this made no difference. |
The configuration is in smb.conf.
Do you mount cifs manually? Like sudo "mount -t cifs -o guest //192.168.1.80/hdd_a /mnt/hdd_a" [global] workgroup = YAUOICHURCH realm = SAMBA4.YAUOI.ORG netbios name = FILE server role = active directory domain controller dns forwarder = 192.168.107.1 log level = 10 unix charset = UTF8 dos charset = CP950 |
Hello nini09, thanks for that.
Quote:
Ubuntu has a network browsing system which shows all the servers on the network at a given time, each of which can be opened (apart from Gwydion - 192.168.1.3 - of course) and then shows its shares which can then be mounted by clicking on them. It is also possible to mount a share in Ubuntu 14.04 in a window that can be brought up, by entering the nature and name of the share such as "smb://magus/Download/". This is a new feature not present in previous Ubuntu versions. I presume this works through Nautilus? Quote:
Code:
#======================= Global Settings ======================= |
Trying cifs mount manaully can help you isolate the issue. Make sure it is path name issue. Browers always use name to connect.
You need add following stuff into smb.conf on Gwydion machine. And then restart Smaba and try it again. unix charset = UTF8 dos charset = CP950 |
Thanks for that, nini09.
Quote:
Found instructions on the Snake OS Site on how to install Debian Linux on the NAS and with some false starts accomplished this. Edited the then present smb.conf to contain the lines you gave. Unfortunately this did not change the status quo; but the upside is that I now have a much more functional NAS. Quote:
Found an interesting ideosyncrasy of the Ubuntu smb.conf. If I have the line: Code:
name resolve order = lmhosts wins bcast host If I change the line to: Code:
name resolve order = wins bcast host Very curious. Paul. |
All times are GMT -5. The time now is 08:21 PM. |