LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-20-2019, 10:23 AM   #1
coromoranttree
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Rep: Reputation: Disabled
samba server access-fstab & smb.conf: Mint v. Raspbian


Samba access to my share works from command line and from fstab entry on a Mint client. Also from command line on the Raspbian client, but not using the same fstab entry. (The share also automounts on a Mac running OS X.) Question: how to get automount to work on the Raspbian client?

The share is a drive on an Asus router. The router appends the volume name of the drive to the assigned sharename, adding punctuation. The resulting sharename:
myShareName (at driveVolName)
The server is ROUTER. The Domain (WORKGROUP) is MYWORKGROUP.

From either computer, smbclient -L ROUTER shows the sharename, and
Code:
smbclient "//ROUTER/myShareName (at driveVolName)"
connects to the server.

The /etc/fstab entry, common to both computers, is:
Code:
//ROUTER/myShareName\040\050at\040driveVolName    /mnt/router    cifs    uid=fred,credentials=/home/fred/.smbcredentials,iocharset=utf8,sec=ntlm   0       0
The /etc/samba/smb.conf file from the Mint client was copied to the Raspbian client.

On the Mint client, "sudo mount -a" correctly mounts the volume. On the Raspbian client, the same command gives "mount error (112): Host is down".

For reference, the differences between the distribution Raspbian smb.conf file (>) and the one copied to the Raspbian client from the Mint client (<) are:
Code:
<    workgroup = MYWORKGROUP
>    workgroup = WORKGROUP

< 	client use spnego = yes
< 	client schannel = auto
< 	client signing = default

< logging = syslog@1 /var/log/samba/log.%m
>    syslog = 0

< ;[homes]
< ;   comment = Home Directories
< ;   browseable = no
> [homes]
>    comment = Home Directories
>    browseable = no

< ;   read only = yes
>    read only = yes

< ;   create mask = 0700
>    create mask = 0700

< ;   directory mask = 0700
>    directory mask = 0700

< ;   valid users = %S
>    valid users = %S
(Side topic: any improvements to the smb.client file would be appreciated.)
 
Old 06-20-2019, 05:41 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions.

My first guess is that you need to add vers=1.0 to your Raspian mount options. Current versions of samba default to version 2.0 instead of 1.0 these days for security reasons. You are running and older version of samba on Mint versus Raspian and I don't know if samba on MacOS has followed suit.

Last edited by michaelk; 06-21-2019 at 08:27 AM.
 
Old 06-21-2019, 08:18 AM   #3
coromoranttree
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Yes, that did the trick, thanks. I also removed the "uid=fred" from the mount options, since given the credentials file, it is redundant.
 
  


Reply



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
LXer: Raspbian GNU/Linux upgrade from Jessie to Raspbian Stretch 9 LXer Syndicated Linux News 0 03-01-2018 07:50 PM
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
Samba in Debian, smb.conf: smb passwd file = ?????????? henrnorl Linux - Software 1 10-06-2006 09:43 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM

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

All times are GMT -5. The time now is 04:09 PM.

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