Re: [Samba] define defaults for mount -t cifs
- Date: Fri, 19 May 2017 11:06:49 +0200
- From: Aurélien Aptel via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] define defaults for mount -t cifs
mj via samba <samba@xxxxxxxxxxxxxxx> writes:
> Is there a place where I can specify defaults options a for "mount -t cifs"?
> I would like to change the default protocol version to vers=2.1
> Is there something like a cifs.conf or such...?
No, there isn't. You can add entries in your fstab file with share,
mountpoints and options there but that has to be done for each share you
plan to mount, probably not what you want.
You could make a wrapper script around mount.cifs that would check or add
the vers option. Something like this pseudo code:
if "vers" in $opts:
if val("vers", $opts) < 2.1:
err("min supported version is 2.1")
set("vers", $opts, 2.1)
call mount.cifs $share $mnt -o $opts
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
To unsubscribe from this list go to the following URL and read the