Which three statements are true about the shared directories defined in the /etc/exports file?

Which three statements are true about the shared directories defined in the /etc/exports file?

Which three statements are true about the shared directories defined in the /etc/exports file?

A.
By default, a directory is shared with no root squashed.

B.
By default, a directory is shared read write.

C.
By default, a directory is shared with root squashed.

D.
By default, a directory is shared read only.

E.
By default, a directory is shared sync.

Explanation:
C (not A): Very often, it is not desirable that the root user on a client machine is also
treated as root when accessing files on the NFS server. To this end, uid 0 is normally mapped to a

different id: the so-called anonymous or nobody uid. This mode of operation (called ‘root
squashing’) is the default, and can be turned off with no_root_squash.
E: In releases of nfs-utils up to and including 1.0.0, the async option was the default. In all
releases after 1.0.0, sync is the default, and async must be explicitly requested if needed.



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Lilacmega

Lilacmega

The answer is C,D,E
====================

Dilliadis

Dilliadis

Correct answers
C, D, E

…..
The export options for a particular host/directory pair derive from several sources. The default export options are sync,ro,root_squash,wdelay. These can be overridden by entries in /etc/exports.
…..

tien

tien

deafult is no_all_squash … which mean include root. A,D,E

myself

myself

no_root_squash: By default, any file request made by user root on the client machine is treated as if it is made by user nobody on the server. (Excatly which UID the request is mapped to depends on the UID of user “nobody” on the server, not the client.) If no_root_squash is selected, then root on the client machine will have the same level of access to the files on the system as root on the server. This can have serious security implications, although it may be necessary if you want to perform any administrative work on the client machine that involves the exported directories. You should not specify this option without a good reason

C is correct

Sam

Sam

A , B , E is the correct answer .

I’m working in a Prod environment by default /etc/export files shared as below ,

(rw,sync,no_root_squash,no_subtree_check)

so by the given answer rw,sync,no_root_squash, is available so ans A,B,E