# Rocky Linux 9.2 - problème with cifs

**URL:** <https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550>\
**Category:** Rocky Linux Help & Support\
**Created:** [July 3, 2023, 9:06am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550 "2023-07-03T09:06:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 3, 2023, 9:06am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/1 "2023-07-03T09:06:02Z")

</div>

Good morning,  
sorry, my level of English is not very high.  
I have a samba server in centos 7, and workstations in rocky linux 9.2.  
Since upgrading to version 9.2 I can no longer mount my network shares.

Dmesg returns the error:  
[259867.087324] CIFS: VFS: Error connecting to socket. Aborting operation.  
[259867.087336] CIFS: VFS: cifs\_mount failed w/return code=-111  
Do you have any idea about the cause of this problem?  
I went back to the old kernel and the old cifs-utils and it doesn’t work anymore either.

I started wireshark, and I found that rocky linux does not respond on port 139 and 445, while the firewall is disabled and selinux too.  
I don’t understand what can be blocking.

---

<div class="post-metadata">

**Author:** ![hortimech](https://avatars.discourse-cdn.com/v4/letter/h/b9bd4f/32.png) [@hortimech](https://forums.rockylinux.org/u/hortimech)\
**Post date:** [July 3, 2023, 9:47am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/2 "2023-07-03T09:47:40Z")

</div>

‘-111’ means ‘connection refused’, so from this, along with no response from ports 139 and 445, can I ask if you have checked if Samba is actually running on your Samba server ?

---

<div class="post-metadata">

**Author:** ![smart](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/smart/32/3145_2.png) [@smart](https://forums.rockylinux.org/u/smart)\
**Post date:** [July 3, 2023, 9:59am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/3 "2023-07-03T09:59:28Z")

</div>

> 

Salut Ouvrard,

je connais pas trop comment marche samba avec red hat mais j’imagine que  
c’est géré avec systemd.

tu pourrais aussi consulter cette page :

> [@Basic SMB / No systemctl Units](https://forums.rockylinux.org/t/basic-smb-no-systemctl-units/5815):
>
> How does one enable SMB? The RedHat 8 documentation indicates that SMB can be enabled with systemctl but I get an error: # systemctl enable --now smb Failed to enable unit: Unit file smb.service does not exist. Even though Samba is installed, it looks like I don’t have systemctl units for it: # systemctl list-unit-files | grep smb # systemctl list-unit-files | grep samba # rpm -qa | grep samba samba-common-4.14.5-10.el8\_5.noarch samba-common-libs-4.14.5-10.el8\_5.x86\_64 samba-client-libs-4.14…

hope this helps 🙂

Etienne

---

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 3, 2023, 10:11am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/4 "2023-07-03T10:11:56Z")

</div>

The samba server under centos 7 is operational and works correctly for workstations in Centos 7.  
Only workstations in Rocky linux 9.2 no longer access it since i passs the upgrade to 9.2.  
line example in fstab :  
//\<Samba\_server\>/\<share\_name\> /mnt/ cifs rw,\_netdev,auto,user,uid=,gid=,credentials=\<file\_credential\>,vers=2.1 0 0

---

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 3, 2023, 10:26am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/5 "2023-07-03T10:26:40Z")

</div>

This morning I did another test :  
RL9.2 → SAMBA-RL9.2 =\> OK  
CENTOS 7 → SAMBA-RL9.2 =\> NOK  
RL9.2 → SAMBA-CENTOS 7 =\> NOK  
CENTOS 7 → SAMBA-CENTOS 7 =\> OK  
RL9.1 → SAMBA-CENTOS 7 =\> OK  
Between 9.1 and 9.2, kernel is upgrade and cifs-utils is upgrade. I see the old rpm for cifs-utils.  
I saw that the old rpm package for cifs-utils was removed on RL repositories

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 3, 2023, 10:53am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/6 "2023-07-03T10:53:58Z")

</div>

Could be that the old ones are using SMB1 and cannot access the new installs because SMB2 or higher. The new ones might not be able to access the old ones because it wants SMB2 or higher.

You can configure samba to allow newer installs to connect to SMB2, or configure the older ones to use SMB2 - assuming of course the version of samba on the older installs allows for it.

---

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 3, 2023, 11:16am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/7 "2023-07-03T11:16:06Z")

</div>

Thank you iwalker,  
I will investigate this lead.

---

<div class="post-metadata">

**Author:** ![hortimech](https://avatars.discourse-cdn.com/v4/letter/h/b9bd4f/32.png) [@hortimech](https://forums.rockylinux.org/u/hortimech)\
**Post date:** [July 3, 2023, 11:17am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/8 "2023-07-03T11:17:26Z")

</div>

This could be the reason, but whilst saying things like ‘RL9.2 → SAMBA-RL9.2 =\> OK’ might mean something to others, it is meaningless to myself, It would be a lot better if it was the Samba versions instead.  
SMBv1 is deprecated and turned of by default from Samba 4.11.0, but all the code is still there (not that I recommend using it) and SMBv2 was available since Samba 4.0.0 (at least).  
Not entirely sure when it happened, but CIFS now defaults to SMBv3.

---

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 3, 2023, 11:48am UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/9 "2023-07-03T11:48:02Z")

</div>

Thank you Hortimech,  
this confirms what I thought, Samba on centos 7 is configured in SMB2 version. It is surely too low.

---

<div class="post-metadata">

**Author:** ![Stef](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Stef](https://forums.rockylinux.org/u/Stef)\
**Post date:** [July 6, 2023, 1:28pm UTC](https://forums.rockylinux.org/t/rocky-linux-9-2-probleme-with-cifs/10550/10 "2023-07-06T13:28:25Z")

</div>

Hello, the problem is solved,  
in SMB3 version,  
it is mandatory to mention the domain when connecting to a samba server.  
The problem appeared after upgrading the samba server to version 4.10.16-20 on centos 7.  
The old version did not require the domain to be mentioned when connecting ( mount -t cifs …)  
Thank you all
