Mounting a subdirectory of a Samba Share isn't possible with the updated binaries on Cent OS 7 anymore. We need this option for autofs mounting just subdirectories for specific users. [pb@extrasrv1 ~]# rpm -qa | grep samba samba-winbind-modules-4.1.12-23.el7_1.x86_64 samba-winbind-clients-4.1.12-23.el7_1.x86_64 samba-client-4.1.12-23.el7_1.x86_64 samba-libs-4.1.12-23.el7_1.x86_64 samba-common-4.1.12-23.el7_1.x86_64 samba-winbind-4.1.12-23.el7_1.x86_64 [pb@extrasrv1 ~]# mount -t cifs -o noserverino,sec=ntlm,rw,noperm,user=fordasia //storagesrv1.eom.de/extranet/fordasia /mnt/extranet/ Password for fordasia@//storagesrv1.eom.de/extranet/fordasia: *************** mount error(2): No such file or directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) [root@extrasrv1 ~]# mount -t cifs -o noserverino,sec=ntlm,rw,noperm,user=fordasia //storagesrv1.eom.de/extranet /mnt/extranet/ Password for fordasia@//storagesrv1.eom.de/extranet: *************** [root@extrasrv1 ~]# ls -l /mnt/extranet/ total 0 ... drwxr-xr-x 2 root root 0 Mar 6 09:21 fordasia We are still able mounting the share with older binaries in CentOS 6. Please let me know if I am able to serve with further details.
this is a kernel cifs vfs issue
Can you retest this - we have added some fixes for prefixpath mounts and this works in reasonably current kernels.