Linux: Automatically mount cifs from linux to windows with different smb versioning
To automount cifs from linux to windows 2016 you can do the following
//remoteserver/sharename /localserver/foldername cifs credentials=/yourcredfilelocation,iocharset=utf8,sec=ntlmv2,vers=3.0 0 0
Put the following in your credential file.
Then you can type the following command:
If you receive an code = -22 error there is probably something wrong in the options you picked.
By: Timothy Jay Conrad