跳转到主内容

某些 UNIX 客户端无法访问 CIFS 共享

Views:
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用于

  • ONTAP 9
  • Redhat 8.4 (RHEL)
  • CIFS/SMB

问题描述

  • 重新启动节点后,某些 UNIX 客户端无法访问 CIFS 共享文件夹
  • 问题并不会影响所有客户端
  • 列出共享文件夹的内容被拒绝,当尝试访问列出的文件夹时 - 在这种情况下,看到的文件夹"Shared",权限被拒绝
root@client1~]# df -hT |grep -i cifs
//system.domain.com/Apps/Reports/Shared/NRFB  cifs    175G  35G  141G  20% /reports/NRFB
//system.domain.com/Apps/Reports/Shared/ALL  cifs    175G  35G  141G  20% /reports/ALL
//system.domain.com/Apps/Reports/Shared/RFB  cifs    175G  35G  141G  20% /reports/RFB
[root@client1~]# ls /reports/NRFB
Shared
[root@client1~]# ls /reports/ALL
Shared
[root@client1~]# ls /reports/RFB
Shared
[root@apptup01df Shared]# df -hT |grep -i cifs
//system.domain.com/Apps/Reports/Shared/RFB  cifs    175G  35G  141G  20% /reports/RFB
//system.domain.com/Apps/Reports/Shared/NRFB  cifs    175G  35G  141G  20% /reports/NRFB
//system.domain.com/Apps/Reports/Shared/ALL  cifs    175G  35G  141G  20% /reports/ALL
[root@apptup01df Shared]# ls /reports/RFB/Shared/
ls: reading directory '/reports/RFB/Shared/': Permission denied
  • 客户端正在列出共享的更高文件夹: 
[root@client1 Shared]# cd ~
[root@client1 ~]# ls -lrth /reports/RFB
total 0
drwxr-xr-x. 2 user01 group01 0 Nov 10  2023 Shared
[root@client1 ~]# ls -lrth /reports/NRFB
total 0
drwxr-xr-x. 2 user01 group01 0 Nov 10  2023 Shared
[root@client1 ~]# ls -lrth /reports/ALL
total 0
drwxr-xr-x. 2 user01 group01 0 Nov 10  2023 Shared
[root@client1 ~]#
  • 再次卸载和装载共享时,没有问题 - 在这种情况下,正确的文件已列出并可访问:
[root@client1 ~]# df -hT |grep -i cifs
//system.domain.com/Apps/Reports/Shared/RFB  cifs    175G  35G  141G  20% /reports/RFB
//system.domain.com/Apps/Reports/Shared/NRFB  cifs    175G  35G  141G  20% /reports/NRFB
//system.domain.com/Apps/Reports/Shared/ALL  cifs    175G  35G  141G  20% /reports/ALL
[root@client1 ~]# ls -lart /reports/NRFB
total 1
drwxrwxr-x. 5 user01 group01 40 Feb 20  2024 ..
-rwxr-xr-x. 1 user01 group01  0 Mar  4  2025 um.txt
drwxr-xr-x. 2 user01 group01  0 Mar  4  2025 .
[root@client1 ~]# ls -lart /reports/ALL/
total 533961
drwxrwxr-x. 5 user01 group01     40 Feb 20  2024 ..
drwxr-xr-x. 2 user01 group01     0 Dec  5  2024 Archive
-rwxr-xr-x. 1 user01 group01     22 Jun 20 17:35 20250403.zip
-rwxr-xr-x. 1 user01 group01 546771760 Jun 20 17:40 20250227.zip
drwxr-xr-x. 2 user01 group01     0 Jun 20 17:40 .
[root@client1 ~]# ls -lart /reports/NRFB/
total 1
drwxrwxr-x. 5 user01 group01 40 Feb 20  2024 ..
-rwxr-xr-x. 1 user01 group01  0 Mar  4  2025 um.txt
drwxr-xr-x. 2 user01 group01  0 Mar  4  2025 .
[root@client1 ~]# ll /reports/NRFB
total 1
-rwxr-xr-x. 1 user01 group01 0 Mar  4  2025 um.txt
[root@client1 ~]# ll /reports/ALL
total 533961
-rwxr-xr-x. 1 user01 group01 546771760 Jun 20 17:40 20250227.zip
-rwxr-xr-x. 1 user01 group01     22 Jun 20 17:35 20250403.zip
drwxr-xr-x. 2 user01 group01     0 Dec  5  2024 Archive
[root@client1 ~]# ll /reports/NRFB/
total 1
-rwxr-xr-x. 1 user01 group01 0 Mar  4  2025 um.txt
[root@client1 ~]#
  • SECTRACE 
svm1    1 Security Style: NTFS and Access is denied. The
                                NT ACL requested permissions are not
                                granted by the ACE while
                                opening existing file or
                                directory. Access is not
                                granted for: "Read
                                Attributes", "Read"
                                Protocol: cifs
                                Volume: -
                         Share: Reports
                                Path: /Shared
                         Win-User: group01\user01
                                UNIX-User: pcuser
                                Session-ID: 123456789123456789

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.