액세스는 설치에 따라 다릅니다.

액세스는 설치에 따라 다릅니다.

디렉터리에 액세스할 수 없으며 이유를 이해할 수 없습니다.

사용자 "exchange"는 올바른 그룹에 있으며 마운트 해제된 디렉토리 application1_exchange_test에 액세스할 수 있지만 application1_exchange에는 액세스할 수 없습니다. 유일한 차이점은 application1_exchange가 nfs로 마운트된다는 것입니다.

root@application2-dev:/var/spool/application1_exchange/from# namei -mo `pwd`
f: /var/spool/application1_exchange/from
 drwxr-xr-x root    root    /
 drwxr-xr-x root    root    var
 drwxr-xr-x root    root    spool
 drwxrwx--- tomcat8 tomcat8 application1_exchange
 drwxrwxr-x tomcat8 tomcat8 from

root@application2-dev:/var/spool/application1_exchange/from# su exchange

exchange@application2-dev:/var/spool/application1_exchange/from$ groups 
exchange tomcat8

exchange@application2-dev:/var/spool/application1_exchange/from$ ls -ld . .. ../..
ls: cannot access '../..': Permission denied
drwxrwxr-x  3 tomcat8 tomcat8 4096 Jun 21 07:31 .
drwxrwx--- 11 tomcat8 tomcat8 4096 Jun 21 07:31 ..

exchange@application2-dev:/var/spool/application1_exchange/from$ cd /var/spool/application1_exchange
bash: cd: /var/spool/application1_exchange: Permission denied

exchange@application2-dev:/var/spool/application1_exchange/from$ cd /var/spool/

exchange@application2-dev:/var/spool$ ls -dl application1_exchange*
drwxrwx--- 11 tomcat8 tomcat8 4096 Jun 21 07:31 application1_exchange
drwxrwx---  3 tomcat8 tomcat8 4096 Jul  9 11:08 application1_exchange_test

exchange@application2-dev:/var/spool$ ls -l application1_exchange*
ls: cannot open directory 'application1_exchange': Permission denied
application1_exchange_test:
total 4
drwxr-xr-x 3 tomcat8 tomcat8 4096 Jul  9 11:08 from

exchange@application2-dev:/var/spool$ findmnt /var/spool/application1_exchange
TARGET                       SOURCE                     FSTYPE OPTIONS
/var/spool/application1_exchange 192.168.1.1:/mnt/exchange nfs    rw,relatime,sync,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,

마운트 해제된 디렉터리의 소유권은 아무런 영향을 미치지 않습니다. 루트이지만 tomcat8과 동일합니다. nfsd/내보내기 옵션은 rw, no_root_squash, sync, no_subtree_check입니다.

관련 정보