Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: gionko on October 28, 2013, 05:54:03 pm
-
Hi all,
I riceve this error when i try to mount a share folder on Zentyal 3.2:
mount.cifs kernel mount options: ip=10.139.0.128,unc=\\home.gionko\public,credentials=/root/.servercred,sec=krb5,ver=1,user='gionko',domain='HOME-GIONKO',pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
the command line is:
sudo mount.cifs //home.gionko/public /mnt/public -o credentials=/root/.servercred,sec=krb5 --verbose
I have a Zentyal 3.2:
uname -a
Linux gateway 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:19:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
samba --version
Version 4.1.0rc4
mount.cifs -V
mount.cifs version: 5.1
obviously the directory /mnt/public exist and i can access to //home.gionko/public from my Windows Workstation with user "gionko", without problem. Any idea?
-
LoL! I have a solution.
mount.cifs + krb (Kerberos) require "keyutils" package for work... It's required for kerberos-authenticated mounts for mount.cifs, and it is not installed by default!
First step:
sudo apt-get install keyutils
At this time if you try to execute sudo mount.cifs //home.gionko/public /mnt/public -o credentials=/root/.servercred,sec=krb5 --verbose, you recive:
mount.cifs kernel mount options: ip=10.139.0.128,unc=\\home.gionko\public,credentials=/root/.servercred,sec=krb5,ver=1,user='gionko',domain='HOME-GIONKO',pass=********
mount error(126): Required key not available
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
... and this is amazing: smbclient works well, but CIFS mount won't work if the netbios name is different from host name, in my case, i must change "//home.gionko/public" in to "//gateway/public"
At the end... all works well :)