Thursday, September 28, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  9] [ 0]  / answers: 1 / hits: 30759  / 8 Months ago, sun, february 19, 2023, 10:19:39

My fstab for connecting to a local NAS was always

// /home/moi/share/OMV cifs noauto,users,username=USERNAME,passwd=PASSWORD

After upgrading my system from Lubuntu 16.04 to 18.04 this did not work any more, giving the error-message:

Failed to query password: Permission denied
Password for USER@// mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

More From » mount


What worked for me was adding vers=1.0 to the options in fstab in combination with changing the option for password from passwd to password:

// /home/moi/share/OMV cifs  vers=1.0,noauto,users,username=USERNAME,password=PASSWORD

This helped to find an error-log:

tail -f  /var/log/kern.log 

I would appreciate any further input.

EDIT: Sept 2019

Today I realized that users is no longer a valid argument of the mount cifs command. Also, vers=1.0 should be the default, according to man mount.cifs.

[#8378] Tuesday, February 21, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
11 Months ago