Article 5AQF2 Samba file share has "execute" bit wrong when mounted on some linux versions

Samba file share has "execute" bit wrong when mounted on some linux versions

by
lock_nb
from LinuxQuestions.org on (#5AQF2)
I have a hard drive shared to my local network via samba running on a Raspberry Pi.
I have three linux systems that mount the same file share via the same mount command but only
one of the system shows the correct permissions.

My old version of Linux Mint has the correct permissions on files, but the newer systems
(Linux Mint 19.2 and Debian Buster) have the "execute" bit on for all regular files.

All three system mount the file system using the same command (of course they all have different
versions of mount and mount.cifs etc).

I can't seem to find a samba option to correct this problem.
Does anyone know what is going on and perhaps a samba setting to correct this kind of issue?

Some background detail below

The example file listing shows the file foobar on the samba server and the various
linux machines. Some with execute bit on and some off.

Samba Server
------------
$ ll ~/share/foobar
-rw-r--r-- 1 pi 0 Nov 22 14:15 /home/pi/share/foobar

Linux Mint #1 (17.3)
--------------------
$ ll ~/share/foobar
-rw-r--r-- 1 john 0 Nov 22 14:15 /home/john/share/foobar

Linux Mint #2 (19.2)
--------------------
$ ll ~/share/foobar
-rwxr-xr-x 1 john 0 Nov 22 14:15 /home/john/share/foobar

Debian Buster (10)
------------------
$ ll ~/share/foobar
-rwxr-xr-x 1 john 0 Nov 22 14:15 /home/john/share/foobar

Some more background -- OS details

Samba Server
------------
Raspbian GNU/Linux 10 (buster)
samba Version 4.9.5-Debian

#======================= Share Definitions =======================
# 2020/11/10 share (drive K)
[share]
path=/home/pi/share
comment=Share Drive K
browsable=yes
guest ok = yes
writable=yes
valid users=pi

Linux Mint #1
-------------
RELEASE=17.3
DESCRIPTION="Linux Mint 17.3 Rosa"

Linux Mint #2
-------------
RELEASE=19.2
DESCRIPTION="Linux Mint 19.2 Tina"

Linux Debian
------------
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
VERSION="10 (buster)"latest?d=yIl2AUoC8zA latest?i=DicS3gWa1JI:WY_qFi38jGM:F7zBnMy latest?i=DicS3gWa1JI:WY_qFi38jGM:V_sGLiP latest?d=qj6IDK7rITs latest?i=DicS3gWa1JI:WY_qFi38jGM:gIN9vFwDicS3gWa1JI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments