Examine this output: # df –t nfs Filesystem Size Used Avail Use% Mounted on o16:export
30G 21G 7.6G 74% /mnt # 1s -1 /mnt/nfs.sh -rwxr-mr-x. 1 root root 22 May 8 16:37
/mnt/nfs.sh # file /mnt/nfs.sh /mnt/nfs.sh: Bourne-Again shell script text executables #
/mnt/nfs.sh bash: /mnt/nfs.sh: Permission denied What is the reason for the error?
A.
The file system was exported on host o16 using the ROOT_SQUASH option.
B.
The /export filesystem was mounted with the NOEXEC option on hot o16.
C.
The filesystem mounted on /mnt was mounted with the NOEXEC option.
D.
The filesystem was exported on host o16 by using the NO_ROOT_SQUASH option.
The ROOT_SQUASH option forces the others permissions which in this case is r-x. So the execution of this file should be permitted with answer A.
Wouldn’t the answer to this question be C?
noexec — Prevents execution of binaries on mounted file systems.