Bug 12458 - Linux cifs client mount SMB share(Samba4.5.1) failed(error 13)
Summary: Linux cifs client mount SMB share(Samba4.5.1) failed(error 13)
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.5.1
Hardware: x64 Linux
: P5 major (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-02 09:32 UTC by wangzhe
Modified: 2016-12-02 10:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wangzhe 2016-12-02 09:32:22 UTC
Server: CentOS6.5 Linux kernel 2.6.32-431 Samba4.5.1

Client: CentOS6.5 Linux kernel 2.6.32-431 mount.cifs 4.8.1

smb.conf:
[global]
change notify=yes
netbios name=az1
security=user
workgroup=MYGROUP_31
[smb]
path=/mnt/share
oplocks=yes
writable=yes
aio write size=16384
aio read size=16384

mount cmd:
mount -t cifs //x.x.x.x/smb /mnt/smb -o username=wz,password=111111

return info:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page

Everyone is OK when using Windows SMB client.
If I change Samba4.5.1 to Samba4.2.x, the mount.cifs is OK.
I don't know if there is any bug in Samba4.5.1 for Linux CIFS client or my configuration is wrong?
Comment 1 Stefan Metzmacher 2016-12-02 09:39:43 UTC
(In reply to wangzhe from comment #0)

Can you try with sec=ntlmssp, I guess the old kernel
uses sec=ntlm or sec=ntlmv2 by default, which are no longer
allowed by default.
Comment 2 wangzhe 2016-12-02 10:04:32 UTC
(In reply to Stefan Metzmacher from comment #1)
It works!
Thank you very much!
Comment 3 Stefan Metzmacher 2016-12-02 10:32:15 UTC
(In reply to wangzhe from comment #2)

Good :-)