挂载的共享文件系统的权限问题

问题描述 投票:0回答:0

我们有几个 GCP - Centos 7 服务器

Server-1:导出共享文件系统

user ID: 2011 and group ID:  2010 of Application user requiring access

导出文件系统(磁盘/卷)的目录和文件权限

[root@<host> dir]# ls -al nfsshared/path/path
drwxr-xr-x  4 group-1 user-1 4096 Sep 20  2022
drwxr-xr-x 22 group-1 user-1 4096 May  8 15:48 
rw-r--r--  1 group-1 user-1 2958 Sep 20  2022 file-1
rw-r--r--  1 group-1 user-1 6610 Jul 19  2022 file-2
rw-r--r--  1 group-1 user-1 2248 Nov 24  2020 file-3
rw-r--r--  1 group-1 user-1 6451 Dec 23  2021 file-4
drwxr-xr-x  7 group-1 user-1 4096 Sep 20  2022 .git
drwxr-xr-x  2 group-1 user-1 4096 Sep 14  2022 file-5

Server-2:挂载导出的文件系统 需要访问的应用程序用户的用户 ID:2011 和组 ID:2010

挂载文件系统的目录和文件权限

ls: cannot access <path>/<file-1>: No data available
total 12
drwxr-xr-x.  4 group-1 user-1 4096 Sep 20  2022 .
drwxr-xr-x. 22 group-1 user-1 4096 May  8 15:48 ..
??????????  ? ?      ?         ?            ? file-1
??????????  ? ?      ?         ?            ? file-2
??????????  ? ?      ?         ?            ? file-3
??????????  ? ?      ?         ?            ? file-4
drwxr-xr-x.  7 group-1 user-1 4096 Sep 20  2022 .git
d??????????  ? ?      ?         ?            ? file-5

我们尝试更新目录/文件权限但出现以下错误

root@<host> models]# sudo chown -R group-1:user-1 nfsshared/
chown: changing ownership of nfsshared/file-1: No data available
chown: changing ownership of nfsshared/<file-2: No data available
chown: changing ownership of nfsshared/<file-3: No data available

还尝试卸载共享文件系统,更新权限,然后重新安装。但同样的错误仍然存在。

有什么想法吗?

干杯,

罗兰

file-permissions mounted-volumes
© www.soinside.com 2019 - 2024. All rights reserved.