RHCE Exam Practice Questions and
Answers | All Correct
What services need to run at boot for NFS? - Answer✔️✔️-rpcbind, nfs, and
nfslock
How do you list the file systems you intend to share with clients using
NFS? - Answer✔️✔️-vi /etc/exports
/var/ftp/pub 192.168.0.0/24(ro,sync)
/exports/read 192.168.0.0/24(ro,sync)
/exports/write 192.168.0.0/24(rw,sync) 127.0.0.1(rw,sync)
What commands should be run after modifying /etc/exports? -
Answer✔️✔️-exportfs -r after making any changes
exportfs -v to display all exports
How do you mount an NFS share from the command line? - Answer✔️✔️-
mount -t nfs server.example.com:/nfs_share /mnt
Which option tells NFS to allow the root user on client systems to have root
priveleges on the share as well? - Answer✔️✔️-no_root_squash
/exports/root-192.168.0.1 192.168.0.1(rw,no_root_squash)
How do you mount an NFS share using fstab? - Answer✔️✔️-
nfsserver:/exports /mount-point nfs defaults 0 0
1
, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
How do you add new Apache users? - Answer✔️✔️-htpasswd -c
/etc/httpd/userlist engineer1
htpasswd /etc/httpd/userlist engineer2
How do you add basic user authentication to a directory in Apache? -
Answer✔️✔️-AuthType Basic
AuthName "Password Protected Test"
AuthUserFile /etc/httpd/userlist
Require user engineer1
How do you add basic group authentication to a directory in Apache? -
Answer✔️✔️-AuthGroupFile /etc/httpd/grouplist
Require group engineers
vi /etc/httpd/grouplist
engineers: engineer2 engineer3
How do you restrict access to a website to a specific domain? - Answer✔️✔️-
<Directory "/var/www/html/private">
AllowOverride None
Options None
Order allow,deny
Allow from test.example.com
</Directory>
2