Ubuntu 17.10 - CIFS Mount Error Code -5

All of a sudden a CIFS mount point stopped working. Probably after a kernel update, according to sources. Syslog got this:

$ grep cifs /var/log/syslog
Dec 28 09:56:12 hostname kernel: [141586.846065] CIFS VFS: cifs_mount failed w/return code = -5

Not really helpful, could be few different things.

Turns out Samba now defaults to version 3 of protocol but the old server I connect to doesn't support it.

Just add vers=2.1 to the options and it is back working.

On the command line:

sudo mount -v -t cifs //server/mount$ /dir/dir -o credentials=/etc/samba/credentials,vers=2.1

In fstab:

//server/mount$  /dir/dir  cifs uid=user,gid=user,credentials=/etc/samba/credentials,vers=2.1   0  0

Reference.

Comments

Popular posts from this blog

Integrating Drupal 8 Webforms Submissions and Rocket Chat

Instalação eToken Pro no Ubuntu 18.04 para acesso ao eCAC da RFB