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

Notices


Reply
  Search this Thread
Old 05-16-2014, 11:49 PM   #1
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Rep: Reputation: Disabled
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.
 
Old 05-19-2014, 02:39 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
Is there any error message in Smaba log or dmesg?
 
Old 05-19-2014, 09:39 PM   #3
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thanks for looking at this.
Quote:
Originally Posted by nini09 View Post
Is there any error message in Smaba log or dmesg?
I looked for the Samba log but could not find it. Not sure what "dmesg" is.
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. 
Failed to retrieve share list from server: connection timed out.
If I use Nautilus to try to access the NAS I get:
Code:
Oops! Something went wrong. 
Unhandled error message: Failed to retrieve share list from server:
connection timed out.
I have no such problems with any of the other servers and can access these through the desktop and Nautilus. But as I said, I can only use FTP to access the NAS from Ubuntu; and that is a one way street, no uploads are possible. Paul.
 
Old 05-20-2014, 02:36 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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.

Last edited by nini09; 05-20-2014 at 02:38 PM.
 
Old 05-21-2014, 10:45 PM   #5
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Hello nini09, please find following the output from dmesg | tail:
Code:
paul@Hermes-III:~$ dmesg | tail
[   33.655742] rt2800pci 0000:05:04.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[   33.655749] rt2800pci 0000:05:04.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   33.656416] wlan0: associate with 5c:d9:98:bb:93:d4 (try 1/3)
[   33.658565] wlan0: RX AssocResp from 5c:d9:98:bb:93:d4 (capab=0x411 status=0 aid=2)
[   33.658979] wlan0: associated
[   35.632683] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[   45.558024] type=1400 audit(1400725546.745:62): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2169 comm="apparmor_parser"
[   45.558041] type=1400 audit(1400725546.745:63): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2169 comm="apparmor_parser"
[   45.559063] type=1400 audit(1400725546.745:64): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2169 comm="apparmor_parser"
[   58.164513] systemd-hostnamed[2218]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
paul@Hermes-III:~$
Quote:
Originally Posted by nini09 View Post
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
Tried to use this information, entitled "Samba/SambaClientGuide"
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:
Originally Posted by nini09 View Post
The Samba log is on server side and should be under /var/log/smaba.
I navigated there; there are many logs there some of which were named after each IP addresses of the available servers on Windows Share, i.e. "192.168.1.2.log" and a log for the name of each server i.e. "dell.log". Logs for the NAS IP address and server name - 192.168.1.3 and gwydion - were not present. Most of these logs had nul content, but some of them had old data. So I am not sure which log you are interested in.
 
Old 05-22-2014, 02:26 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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.
 
Old 05-23-2014, 04:19 AM   #7
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thanks for that information. Have given this attention as follows:
Quote:
Originally Posted by nini09 View Post
You may have not (or incorrectely) configured your hostname in /etc/hosts. Correcting that may resolve this.
Have checked my host names in "hosts" and these are the same as comes up with sbmtree.
Quote:
Another way, as the warning suggests, is to install nss-myhostname, which is referred as libnss-myhostname.
I installed that without problems but it makes no obvious difference.
Here is my "smbtree" listing after the above changes, for your interest.
Code:
paul@Hermes-III:~$ smbtree
Enter paul's password: 
MSHOME
	\\SORCERER-II    		Clinic Desktop
		\\SORCERER-II\Printer2       	Microsoft XPS Document Writer
		\\SORCERER-II\Printer3       	Microsoft Office Document Image Writer
		\\SORCERER-II\LexmarkE       	Lexmark E260dn
		\\SORCERER-II\Download       	
		\\SORCERER-II\Epson          	Epson LQ-550
		\\SORCERER-II\HPDeskJet      	HP DeskJet 930C
		\\SORCERER-II\clinic_h       	
		\\SORCERER-II\SharedDocs     	
		\\SORCERER-II\print$         	Printer Drivers
		\\SORCERER-II\IPC$           	Remote IPC
		\\SORCERER-II\My Documents   	
	\\MAGUS          		College Desktop
		\\MAGUS\HPLaserjn      	HP LaserJet M2727 MFP Series PCL 6
		\\MAGUS\Temp           	
		\\MAGUS\Printer4       	Epson LQ-500
		\\MAGUS\DOWNLOAD       	
		\\MAGUS\LANIERLP       	Lanier SP C811DN PCL 5c
		\\MAGUS\Multimedia     	
		\\MAGUS\My_Documents   	
		\\MAGUS\Deskjet930c    	HP DeskJet 930C
		\\MAGUS\SharedDocs     	
		\\MAGUS\print$         	Printer Drivers
		\\MAGUS\IPC$           	Remote IPC
		\\MAGUS\My Documents   	
		\\MAGUS\CD_FILES       	
	\\HERMES-III     		Hermes-III server (Samba, Ubuntu)
		\\HERMES-III\Hewlett-Packard-HP-LaserJet-M2727nf-MFP	Hewlett-Packard HP LaserJet M2727nf MFP
		\\HERMES-III\Lexmark-E260dn 	Lexmark E260dn
		\\HERMES-III\LANIER-LP440c-SP-C811DNCMD:PS	LANIER LP440c/SP C811DNCMD:PS
		\\HERMES-III\HP-Deskjet-930c	HP Deskjet 930c
		\\HERMES-III\print$         	Printer Drivers
		\\HERMES-III\Downloads      	
		\\HERMES-III\IPC$           	IPC Service (Hermes-III server (Samba, Ubuntu))
	\\GWYDION        		gwydion
Conversion error: Incomplete multibyte sequence()
paul@Hermes-III:~$
Please note the comment after the "smbtree" listing for the NAS in question (gwydion), namely:
Code:
Conversion error: Incomplete multibyte sequence()
Is this significant? I do wonder why Ubuntu comes up with this error when none of my other machines, including my three Windows machines and my other Salix Linux machine, have any problems accessing the NAS?
Paul.
 
Old 05-23-2014, 02:36 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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.
 
Old 05-23-2014, 09:07 PM   #9
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thanks for that, here is the follow-up:
Quote:
Originally Posted by nini09 View Post
Try following two solutions
1)edit /etc/hosts file
add computer ip address and name in hosts file. Save and exit.
Had this in place already as follows:
Code:
#
# hosts	This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem. It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a
#		"named" name server.  Just add the names, addresses
#		and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
# For loopbacking.
127.0.0.1	localhost
127.0.1.1	hermes-iii.example.net HERMES-III
192.168.1.2	MAGUS
192.168.1.3	GWYDION
192.168.1.4	DELL-D530
192.168.1.5	SORCERER-II
192.168.1.6	GANDALF
192.168.1.7	HERMES-III
192.168.1.9	DMR-HW220
192.168.1.15	RNPD41B03
192.168.1.16	NPI80D256	

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Quote:
2)edit /etc/nsswitch.conf
Add wins so it looks like this:
hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
Had done this some time ago as per a post I found on LinuxQuestions through a search.
Quote:
Install the "winbind" package.
"sudo apt-get install winbind" comes up as already having the latest version installed.
I thought I would post the following. just in case it gives any hints of the underlying problem:
Code:
paul@Hermes-III:~$ dmesg | tail
[   35.268394] rt2800pci 0000:05:04.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[   35.272264] wlan0: associate with 5c:d9:98:bb:93:d4 (try 1/3)
[   35.274474] wlan0: RX AssocResp from 5c:d9:98:bb:93:d4 (capab=0x411 status=0 aid=4)
[   35.274885] wlan0: associated
[   35.777306] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[   46.163241] audit_printk_skb: 123 callbacks suppressed
[   46.163247] type=1400 audit(1400891664.587:62): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2129 comm="apparmor_parser"
[   46.163260] type=1400 audit(1400891664.587:63): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2129 comm="apparmor_parser"
[   46.163986] type=1400 audit(1400891664.587:64): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2129 comm="apparmor_parser"
[  213.156865] init: smbd main process (693) killed by TERM signal
paul@Hermes-III:~$
and also
Code:
paul@Hermes-III:~$ smbtree -d3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface wlan0 ip=192.168.1.7 bcast=192.168.1.255 netmask=255.255.255.0
Enter paul's password: 
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
name_resolve_bcast: Attempting broadcast lookup for name MSHOME<0x1d>
Got a positive name query response from 192.168.1.7 ( 192.168.1.7 )
Connecting to 192.168.1.7 at port 445
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
MSHOME
name_resolve_bcast: Attempting broadcast lookup for name MSHOME<0x1d>
Got a positive name query response from 192.168.1.7 ( 192.168.1.7 )
Connecting to 192.168.1.7 at port 445
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
	\\SORCERER-II    		Clinic Desktop
name_resolve_bcast: Attempting broadcast lookup for name SORCERER-II<0x20>
Got a positive name query response from 192.168.1.5 ( 192.168.1.5 192.168.50.1 )
Connecting to 192.168.1.5 at port 445
Connecting to 192.168.1.5 at port 139
Connecting to 192.168.50.1 at port 445
Connecting to 192.168.50.1 at port 139
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0xb95d5340] mpx_fde[(nil)] fd[13] - disabling
samba_tevent: EPOLL_CTL_DEL EBADF for fde[0xb95d4cd0] mpx_fde[(nil)] fd[12] - disabling
Doing spnego session setup (blob length=0)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
		\\SORCERER-II\Printer2       	Microsoft XPS Document Writer
		\\SORCERER-II\Printer3       	Microsoft Office Document Image Writer
		\\SORCERER-II\LexmarkE       	Lexmark E260dn
		\\SORCERER-II\Download       	
		\\SORCERER-II\Epson          	Epson LQ-550
		\\SORCERER-II\HPDeskJet      	HP DeskJet 930C
		\\SORCERER-II\clinic_h       	
		\\SORCERER-II\SharedDocs     	
		\\SORCERER-II\print$         	Printer Drivers
		\\SORCERER-II\IPC$           	Remote IPC
		\\SORCERER-II\My Documents   	
	\\MAGUS          		College Desktop
name_resolve_bcast: Attempting broadcast lookup for name MAGUS<0x20>
Got a positive name query response from 192.168.1.2 ( 192.168.1.2 192.168.50.1 )
Connecting to 192.168.1.2 at port 445
Doing spnego session setup (blob length=0)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
		\\MAGUS\HPLaserjn      	HP LaserJet M2727 MFP Series PCL 6
		\\MAGUS\Temp           	
		\\MAGUS\Printer4       	Epson LQ-500
		\\MAGUS\DOWNLOAD       	
		\\MAGUS\LANIERLP       	Lanier SP C811DN PCL 5c
		\\MAGUS\Multimedia     	
		\\MAGUS\My_Documents   	
		\\MAGUS\Deskjet930c    	HP DeskJet 930C
		\\MAGUS\SharedDocs     	
		\\MAGUS\print$         	Printer Drivers
		\\MAGUS\IPC$           	Remote IPC
		\\MAGUS\My Documents   	
		\\MAGUS\CD_FILES       	
	\\HERMES-III     		Hermes-III server (Samba, Ubuntu)
name_resolve_bcast: Attempting broadcast lookup for name HERMES-III<0x20>
Got a positive name query response from 192.168.1.7 ( 192.168.1.7 )
Connecting to 192.168.1.7 at port 445
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
		\\HERMES-III\Hewlett-Packard-HP-LaserJet-M2727nf-MFP	Hewlett-Packard HP LaserJet M2727nf MFP
		\\HERMES-III\Lexmark-E260dn 	Lexmark E260dn
		\\HERMES-III\LANIER-LP440c-SP-C811DNCMD:PS	LANIER LP440c/SP C811DNCMD:PS
		\\HERMES-III\HP-Deskjet-930c	HP Deskjet 930c
		\\HERMES-III\IPC$           	IPC Service (Hermes-III server (Samba, Ubuntu))
		\\HERMES-III\Downloads      	
		\\HERMES-III\print$         	Printer Drivers
	\\GWYDION        		gwydion
name_resolve_bcast: Attempting broadcast lookup for name GWYDION<0x20>
Got a positive name query response from 192.168.1.3 ( 192.168.1.3 )
Connecting to 192.168.1.3 at port 445
Connecting to 192.168.1.3 at port 139
convert_string_talloc: Conversion error: Incomplete multibyte sequence()
Conversion error: Incomplete multibyte sequence()
paul@Hermes-III:~$
But I am beginning to start to think there is a fundamental bug somewhere in Ubuntu 14.04 Samba.
Regards,
Paul.
 
Old 05-27-2014, 02:55 PM   #10
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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?
 
Old 05-27-2014, 06:48 PM   #11
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
please check following thing.
Check "dos charset" and "unix charset" parameter.
Have you correctly linked libiconv or iconv with Samba?
Hello nini09, thanks for that.
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.

Last edited by paul1945; 05-27-2014 at 06:49 PM.
 
Old 05-28-2014, 03:06 PM   #12
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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
 
Old 05-28-2014, 08:40 PM   #13
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Hello nini09, thanks for that.
Quote:
Originally Posted by nini09 View Post
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"
I use Gigolo to mount all the network shares. I have never tried the manual cifs approach.
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:
[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
Please see below my smb.conf file. I presume from the above that your computer has a different function in your network than mine (Hermes-III); mine is just another server in a network that can have up to 4 other servers (5 in all) and a NAS (Gwydion) which is the file-exchange hub of the network. The network also has two printers attached, although the printers are routed through the workgroup "workgroup" rather than "mshome", which is used by all the computers.
Code:
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = MSHOME
   netbios name = Hermes-III
   name resolve order = bcast host lmhosts wins
   preferred master = yes
   domain master = yes
   client lanman auth = yes
   lanman auth = yes
   server string = %h server (Samba, Ubuntu)
;   wins server = w.x.y.z
   dns proxy = no

#### Networking ####

;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = yes

#### Debugging/Accounting ####

   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

   server role = standalone server
   passdb backend = tdbsam
   encrypt passwords = yes
   obey pam restrictions = no
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
;  pam password change = yes
   map to guest = bad user

########## Domains ###########

;   logon path = \\%N\profiles\%U
;   logon drive = H:
;   logon script = logon.cmd
;   add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
;   add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
;   add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

;   include = /home/samba/etc/smb.conf.%m
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash
;   usershare max shares = 100
   usershare allow guests = yes

#======================= Share Definitions =======================

;[homes]
;   comment = Home Directories
;   browseable = no
;   read only = yes
;   create mask = 0700
;   directory mask = 0700
;   valid users = %S

;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
;   write list = root, @lpadmin

[Downloads]
path = /home/paul/Downloads
create mask = 0775
browseable = Yes
writable = Yes
valid users = paul
Hope this all makes sense to you, the whole thing seems rather mysterious to me. Paul.
 
Old 05-29-2014, 02:50 PM   #14
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,881

Rep: Reputation: 162Reputation: 162
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
 
Old 05-30-2014, 07:52 AM   #15
paul1945
Member
 
Registered: Aug 2012
Posts: 55

Original Poster
Rep: Reputation: Disabled
Thanks for that, nini09.
Quote:
Originally Posted by nini09 View Post
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
Found that the NAS does not have smb.conf, in fact it is a very cut down version of Linux with very few modifiable features.
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:
Trying cifs mount manually can help you isolate the issue. Make sure it is path name issue. Browsers always use name to connect.
Have not had the chance to try this but will do tomorrow.
Found an interesting ideosyncrasy of the Ubuntu smb.conf.
If I have the line:
Code:
name resolve order = lmhosts wins bcast host
as recommended in a Samba instruction file I found, the little NAS Gwydion no longer shows under the network servers listing, but all the other servers are unaffected.
If I change the line to:
Code:
name resolve order = wins bcast host
that is, leave out "lmhosts", it again shows up.
Very curious.
Paul.
 
  


Reply

Tags
samba mount permission


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
Cannot connect to Samba Server over VPN on Windows Network trout256 Linux - Networking 12 11-05-2019 01:01 AM
How do I use Samba to connect to a Windows network with Fedora 8? Iltbreg Linux - Networking 2 12-04-2007 04:03 PM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
How to connect to a Windows network using Samba ? wlaw Linux - Networking 3 09-05-2004 10:57 PM
connect to a nt network - samba for n00bs Loveless Linux - Networking 2 02-19-2002 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:50 AM.

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