Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 34590  / 2 Years ago, sat, june 11, 2022, 2:11:41

I Have a partition called D: shared at a Windows machine, and In my Ubuntu server 12.4 I Have this line at fstab to mount it



//10.0.0.39/D$/ /mnt/charles/ cifs user,file_mode=0777,dir_mode=0777,rw,gid=1000,sec=ntlmv2,credentials=/root/creds 0 0


I've added the option "sec=ntlmv2", because was appearing this message every time I boot/reboot my ubuntu.



CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from nbtlm to ntlmv2 in kernel realese 3.3


Now I can't mount with this "sec=ntlmv2" option, because appear to me.



mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Can someone help? Thanks in advance!



This is the result with --verbose, what this can help to find the problem?



root@PITCAIRN:/mnt# mount -t cifs //10.0.39/D$/ /mnt/charles --verbose -ouser=Yamash,sec=ntlmv2 
Password:
mount.cifs kernel mount options: ip=10.0.0.39,unc=10.0.39D$,sec=ntlmv2,ver=1,user=Yamash,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


--EDIT--
Zetrocker came with the solution, I changed the "sec=ntlmv2" to "sec=ntlmssp" and now it's working.



Thanks Zetrocker


More From » fstab

 Answers
7

Try something like this:



//10.0.0.39/D$ /mnt/charles cifs --verbose user,file_mode=0777,dir_mode=0777,rw,gid=1000,sec=ntlmv2,credentials=/root/creds 0 0


This should at least be a bit more verbose.



There is a thread found at Stack Overflow



There are a good number of people that had success after installing the cifs-utils



code:



sudo apt-get update
sudo apt-get install cifs-utils

[#27479] Sunday, June 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
untroo

Total Points: 3
Total Questions: 110
Total Answers: 95

Location: Palestine
Member since Thu, Oct 28, 2021
3 Years ago
untroo questions
;