Author Topic: [SOLVED] mount error(2): No such file or directory - Samba Mount  (Read 34063 times)

gionko

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hi all,

I riceve this error when i try to mount a share folder on Zentyal 3.2:
Code: [Select]
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:
Code: [Select]
sudo mount.cifs //home.gionko/public /mnt/public -o credentials=/root/.servercred,sec=krb5 --verbose
I have a Zentyal 3.2:
Code: [Select]
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?
« Last Edit: October 28, 2013, 08:55:03 pm by gionko »

gionko

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: mount error(2): No such file or directory - Samba Mount
« Reply #1 on: October 28, 2013, 08:54:45 pm »
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:
Code: [Select]
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:
Code: [Select]
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 :)