I recently upgraded two of my Fedora machines, but when I try to mount a Windows share using mount-cifs, I get the following:
mount error(126): Required key not available
The mount.cifs command that is used has the following sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0
Mounting this same share still works from my F37 machines. Presumably something has changed with F38, and so I am wondering how to mount these shares.
Many thanks, and best wishes, Ranjan
On 21 Apr 2023, at 19:34, Ranjan Maitra mlmaitra@gmx.com wrote:
I recently upgraded two of my Fedora machines, but when I try to mount a Windows share using mount-cifs, I get the following:
mount error(126): Required key not available
The mount.cifs command that is used has the following sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0
Mounting this same share still works from my F37 machines. Presumably something has changed with F38, and so I am wondering how to mount these shares.
What OS and software is serving the shares? Can you use smbclient to access the share?
Barry
Many thanks, and best wishes, Ranjan _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Barry,
Thanks!
On Fri Apr21'23 10:35:32PM, Barry wrote:
From: Barry barry@barrys-emacs.org Date: Fri, 21 Apr 2023 22:35:32 +0100 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: cifs mount error F38
On 21 Apr 2023, at 19:34, Ranjan Maitra mlmaitra@gmx.com wrote:
I recently upgraded two of my Fedora machines, but when I try to mount a Windows share using mount-cifs, I get the following:
mount error(126): Required key not available
The mount.cifs command that is used has the following sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0
Mounting this same share still works from my F37 machines. Presumably something has changed with F38, and so I am wondering how to mount these shares.
What OS and software is serving the shares?
The share is a Windows share. I do not know how to answer the software question, sorry.
Can you use smbclient to access the share?
I do not know about this. the above sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0 are needed in mount.cifs for things to work, with mount.cifs.
How would I try using smbclient with something that matches the above invocations?
Sorry, I am not very familiar with this.
Thanks again for your help!
Best wishes, Ranjan
On 21 Apr 2023, at 23:33, Ranjan Maitra mlmaitra@gmx.com wrote:
Barry,
Thanks!
On Fri Apr21'23 10:35:32PM, Barry wrote: From: Barry barry@barrys-emacs.org Date: Fri, 21 Apr 2023 22:35:32 +0100 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: cifs mount error F38
On 21 Apr 2023, at 19:34, Ranjan Maitra mlmaitra@gmx.com wrote:
I recently upgraded two of my Fedora machines, but when I try to mount a Windows share using mount-cifs, I get the following:
mount error(126): Required key not available
The mount.cifs command that is used has the following sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0
Mounting this same share still works from my F37 machines. Presumably something has changed with F38, and so I am wondering how to mount these shares.
What OS and software is serving the shares?
The share is a Windows share. I do not know how to answer the software question, sorry.
What is the version of windows?
Can you use smbclient to access the share?
I do not know about this. the above sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0 are needed in mount.cifs for things to work, with mount.cifs.
How would I try using smbclient with something that matches the above invocations?
Sorry, I am not very familiar with this.
Try the man page for smbclient, let us know if you can get it working.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Barry,
Thanks for this! To answer some of your questions, I do not know what the version of Windows is. It is something that is fairly recent, but has not been changed for years.
After looking at dmesg (as recommended by the error message), and /var/log/messages, I tried to change selinux to permissive on the F38 box, and then I was able to mount the share. However, the F37 box mounts the share fine, with selinux set at enforcing. So, should a separate context need to be created for F38? If so, what, where?
Also, the mount-cifs package version is exactly the same on both F37 and F38 (both up to date). So, I do not know if mount-cifs is the issue, hence I do not know if it is worthwhile trying smbclient for this purpose.
Many thanks again, and best wishes, Ranjan
On Sat Apr22'23 08:51:20AM, Barry wrote:
From: Barry barry@barrys-emacs.org Date: Sat, 22 Apr 2023 08:51:20 +0100 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: cifs mount error F38
On 21 Apr 2023, at 23:33, Ranjan Maitra mlmaitra@gmx.com wrote:
Barry,
Thanks!
On Fri Apr21'23 10:35:32PM, Barry wrote: From: Barry barry@barrys-emacs.org Date: Fri, 21 Apr 2023 22:35:32 +0100 To: Community support for Fedora users users@lists.fedoraproject.org Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: Re: cifs mount error F38
On 21 Apr 2023, at 19:34, Ranjan Maitra mlmaitra@gmx.com wrote:
I recently upgraded two of my Fedora machines, but when I try to mount a Windows share using mount-cifs, I get the following:
mount error(126): Required key not available
The mount.cifs command that is used has the following sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0
Mounting this same share still works from my F37 machines. Presumably something has changed with F38, and so I am wondering how to mount these shares.
What OS and software is serving the shares?
The share is a Windows share. I do not know how to answer the software question, sorry.
What is the version of windows?
Can you use smbclient to access the share?
I do not know about this. the above sec=ntlmssp,rw,nounix,noserverino,file_mode=0777,dir_mode=0777,vers=3.0 are needed in mount.cifs for things to work, with mount.cifs.
How would I try using smbclient with something that matches the above invocations?
Sorry, I am not very familiar with this.
Try the man page for smbclient, let us know if you can get it working.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Am 22.04.2023 um 15:40 schrieb Ranjan Maitra mlmaitra@gmx.com:
I tried to change selinux to permissive on the F38 box, and then I was able to mount the share. However, the F37 box mounts the share fine, with selinux set at enforcing. So, should a separate context need to be created for F38? If so, what, where?
As I understand, you have a Windows box that provides some shares. And you have a Fedora box, I assume one of the desktop variants, where you want to mount that share.
And indeed, if it works with SELinux permissive it is clearly a SELinux issue and has nothing to do with the Windows version or smbclient.
Have a look at
https://docs.fedoraproject.org/en-US/quick-docs/troubleshooting_selinux/
to further analyse the blockage.
Good luck
-- Peter Boy https://fedoraproject.org/wiki/User:Pboy pboy@fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member Fedora docs team contributor Java developer and enthusiast