[Samba] Specifying client auth options to /etc/fstab

Feargal Reilly feargal at helgrim.com
Mon Apr 14 09:42:21 MDT 2014


I have been given access to a remote share that I can successfully access
using smbclient as follows:

# smbclient -s client.conf -L '\\10.2.3.4\example_share' --user=myuser

This is in client.conf:

[globals]
   client lanman auth = yes
   client plaintext auth = yes
   client ntlmv2 auth = no

This is on ubuntu 12.04.4 with default install of cifs-utils.

However, when I try to mount it I cannot find a corresponding flag for
these auth options:

For example, with this in /etc/fstab:
//10.1.2.3/example_share /media/example cifs
username=myuser,password=mypass,uid=1000,sec=ntlm 0 0

# mount.cifs /mnt/example

[31135.699975] CIFS VFS: Server requests plain text password but client
support disabled
[31136.296128] CIFS VFS: cifs_mount failed w/return code = -13

Is there a way to mount this automatically on startup?

Thanks,
-Feargal


More information about the samba mailing list