Ubuntu – CIFS mounting fails in Ubuntu 13.10 tried with sec=ntlm and sec=ntlmv2

cifsfstabkernelmountsamba

I have read just about every cifs mount question and sadly cannot get a cifs share to mount.

The command I am using works from a redhat machine but not from Ubuntu 13.10 ( kernel 3.11.0-15-generic)

The command I use is

sudo mount -t cifs //server01.mycompany.com/archive$/StructuralBiology/RAW-Data /home/rawdata2 -o user=hari.lastname,rw,soft,nosuid,uid=1000,gid=1000

I have tried this with sec=ntlm , sec=ntlmv2 and it still does not work.

The cifs command fails with :

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

And dmesg has a message:

[169895.357046] CIFS VFS: cifs_mount failed w/return code = -13
[170370.733123] CIFS VFS: cifs_read_super: get root inode failed

I have spend days trying to find an answer and cannot : any help or pointers will be greatly appreciated.

Best Answer

I have had this problem on various networks which needed samba filesharing services from an Ubuntu or LinuxMint-based file server.

In every case, while the user's samba account had a password and allowed browsing (and manipulating files) of a share through a file manager, fstab mounts did not work.

This is regardless of having set sec=ntlm or sec=ntlmv2 or sec=ntlmssp or any of the various other options typically offered as a "solution" (i.e. such as setting the file_mode or user or gid)

In every case the solution for our installations has ended up being the same: reset the samba user's password and the mount works, regardless of setting options!

I'm not sure what happens when the password is "inherited/converted" from the user's Linux account, but there seems to be a significant problem there, notwithstanding the ability to browse (not mount) a samba share.

I am now going to cross post this reply to a couple similar AskUbuntu posts which promote the same "answers" which often do not seem to help those with problems.

Perhaps this approach will help you with your fstab samba mounting challenge. I hope so and good luck.

Related Question