Web lists-archives.com

[Samba] mount.cfs mount error(13): Permission denied

Hi All,

   I am running into an issue mounting a Samba share from our Linux server. We are running Samba 4.8.8 on CentOS  7.6.1810. I have done a some testing, and I can't get the root cause of the error.


CentOS 7.6 client -> Samba server, mounting fails - mount.cfs mount error(13): Permission denied
CentOS 7.6 client -> Win10 desktop share, mounting works

Fedora 29 client  -> Samba  server, mounting fails - mount.cfs mount error(13): Permission denied
Fedora 29 client  -> Win10 desktop share, mounting works

Window 10 client -> Samba server, mounting works

So there is a problem between the server and Linux clients. Originally I was thinking it was linked to this closed bug report, https://bugzilla.samba.org/show_bug.cgi?id=8950. The error is same, but the path leading to the share is readable, so it isn't the same thing.

I am using the following command to mount the share.

# mount -t cifs  //xxxxxxxxxxxxxxxxxxxx/paulg /tmp/1 -o user=paulg,uid=2381,gid=1000,sec=ntlmsspi
Password for paulg@//xxxxx/paulg:  *********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I tried the following security options.

With the same results.

I wonder why Linux clients having issues?  Any pointers?


||||||||||--- samba config for AD ---

# Global parameters
        netbios name = DC1
        workgroup  = ONEEXAMPLECA
        realm = AD.ONE.EXAMPLE.CA
        dns forwarder = 130.63.xx.xx
        server role = active directory domain controller
        idmap_ldb:use rfc2307 = yes
        interfaces = 130.63.xx.xx
        bind interfaces only = yes

        path = /xconf/samba/sysvol/ad.one.example.ca/scripts
        read only = no
        writeable = no
        guest ok = no

        path = /xconf/samba/sysvol
        read only = no
        writeable = no
        guest ok = no

--- samba config for file server ---

netbios name = PCSERVER1
security = ADS
workgroup  = ONEEXAMPLECA
server string =  Samba Server
hostname lookups = yes

#log files
debug timestamp = yes
debug uid = yes
debug pid = yes
debug level = 1
max log size = 0

username map = /xconf/samba/usermap

#ip networking
max connections = 0
interfaces = 130.xx.xx.xx
bind interfaces only = yes

load printers = yes
printcap name = /xconf/lprng/printcap
printing = bsd
print command = /xsys/bin/lpr -b -P%p %s ; rm -f %s
lpq command = /xsys/bin/lpq -P%p
lprm command = /xsys/bin/lprm -P%p %j
use client driver = yes

# security settings
guest account = nobody
invalid users = root
nt acl support = yes
inherit permissions = yes
client lanman auth = no
client ntlmv2 auth = yes
wide links = no
unix extensions = no

# level2 oplocks = no
oplocks = no
strict locking = no

# Tell Samba to kill processes which are not used anymore; time in minutes.
deadtime = 30

comment = Home Directories
browseable = yes
read only = no
valid users = %S
csc policy = disable
invalid users = activ8
oplocks = no
level2 oplocks = no
strict locking = no
posix locking = no

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba