sss를 사용한 nfs4 idmapping

sss를 사용한 nfs4 idmapping

NFS4 ACL을 구현하는 Dell 엔터프라이즈 파일 서버가 있습니다. NFS4 디렉토리를 마운트할 수 있으며 nfs4_setfacl 및 nfs4_getfacl이 올바르게 작동합니다. 불행하게도 ls 목록이 올바르게 작동하도록 할 수 없습니다. ID 매핑을 활성화했습니다.

에코 0 > /sys/module/nfs/parameters/nfs4_disable_idmapping

/etc/idmapd를 구성했습니다.

[General]
Verbosity = 10
Pipefs-Directory = /run/rpc_pipefs
# set your own domain here, if it differs from FQDN minus hostname
Domain = example.com
[Translation]
Method = sss
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup

/etc/request-key.d/id_resolver.conf 구성되었습니다

마운트된 파일에 대해 ls -l을 수행하면 요청 키가 "example.com" 대신 "localhost"를 사용합니다.

nfsidmap -l

3 .id_resolver keys found:
uid:root@localhost
uid:gweatherby@localhost
gid:wheel@localhost

이 작업을 수행하는 방법을 알아낸 사람이 있습니까?


그것을 알아 냈습니다 :

nfs4_setfacl 명령에서 도메인 이름을 사용하고 있었습니다. 예를 들어

nfs4_setfacl -a A::[이메일 보호됨]:r 파일 이름

계정 이름을 사용하면 원하는 대로 작동합니다.

nfs4_setfacl -a A::gweatherby :r 파일 이름

관련 정보