Page 1 of 1

[SOLVED] CIFS vs Shared Folder in Windows Server 2012 R2

Posted: Thu Apr 19, 2018 11:31 am
by dragonF0rce
Hello,

I tried to mount manually on my Linux shared folders from windows server 2012.

The syntaxe is right but Im stuck on the same issue error 13:

Code: Select all

#mount.cifs //ip/division /mnt/division -o username=bob@dude-uk,password=myscretpass,vers=2.1
dmesg:
Status code returned 0xc000006d STATUS_LOGON_FAILURE
CIFS VFS: Send error in SessSetup = -13
CIFS VFS: cifs_mount failed w/return code = -13
If I remove the option vers= then syslog claim :

No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.

If I use option sec= then I specify this option then I got error 126

Code: Select all

#mount.cifs //ip/division /mnt/division -o username=bob@dude-uk,password=myscretpass,vers=2.1,sec=krb5
mount error(126): Required key not available
Package Keyutils is installed.

if I tried to prompt the password:

Code: Select all

#mount.cifs //ip/division /mnt/division -o username=bob@dude-uk
Password for bob@dude-uk@//ip/division:  
mount error(13): Permission denied
Nemo can mount the shared folders.
Do you have any idea ?

Re: CIFS vs Shared Folder in Windows Server 2012 R2

Posted: Thu Apr 19, 2018 2:24 pm
by altair4
I'm afraid I do not have an answer to your original question but I may have an insight into this one:
Nemo can mount the shared folders.
Unless you have modified smb.conf yourself the highest negotiated smb dialect that Nemo can attain is smb1 ( NT1 in samba-speak and vers=1.0 in CIFS-speak ). mount.cifs and the samba client used in nemo are unrelated - meaning the defaults of one has no impact on the defaults of the other..

Re: CIFS vs Shared Folder in Windows Server 2012 R2

Posted: Fri Apr 20, 2018 4:46 am
by dragonF0rce
After read Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1474539
Kernel 4.13 got an issue to use mount.cifs command properly.
I must boot on 4.12 kernel - I will update my post after that

Re: CIFS vs Shared Folder in Windows Server 2012 R2

Posted: Fri Apr 20, 2018 10:31 am
by dragonF0rce
issue kernel 4.13 was a troll :twisted:
I set a new user on windows server to allow mount shared folders :lol:
I used administrator account but it doesnt works with mount.cifs command only Nemo can succeed then I create a new user with admin rights and it works with mount.cifs.
Now it works.

Re: [SOLVED] CIFS vs Shared Folder in Windows Server 2012 R2

Posted: Fri Apr 20, 2018 1:23 pm
by altair4
I don't know if you will get notification of this post but I have a question. Is bob@dude-uk the actual user name or is the dude-uk part really a domain?

THe reason I ask is because on Win10 you can log into the machine with a Microsoft Account name which is in fact an email address. So if I log into Win10 with something like lucifer@hades.com then my mount command would be:

Code: Select all

sudo mount -t cifs //win10/shared /home/altair/Win10Shared -o username=lucifer,domain=hades.com,password=PPPPPPP