exam questions

Exam EX300 All Questions

View all questions & answers for the EX300 exam

Exam EX300 topic 2 question 10 discussion

Actual exam question from RedHat's EX300
Question #: 10
Topic #: 2
[All EX300 Questions]

Configure NFS service -
Configure the NFS service on the system1, as required:
1. Share the directory /public in read only way, just can be accessed by systems in domain11.example.com at the same time
2. Share the directory /protected in rad and write way, Kerberos security encryption required, you can use the key provided by the following URL: http://host.domain11.example.com/materials/nfs_server.keytab
3. Directory /protected should contain the sub directory named project and deepak;
4. User deepak can access /protected/project in read and write ways

Show Suggested Answer Hide Answer
Suggested Answer: See Explanation
system1:
vim /etc/exports
/protected 172.24.11.0/24(rw,sync,sec=krb5p)
/public 172.24.11.0/24(ro,sync)
wget -O /etc/krb5.keytab
http://host.domain11.example.com/materials/nfs_server.keytab
vim /etc/sysconfig/nfs RPCNFSDARGS="-V 4.2 "
:wq
systemctl restart nfs
systemctl start nfs-secure-server
systemctl enable nfs-secure-server
exportfs ra
showmount e
firewall-cmd --add-service=nfs permanent
firewall-cmd --add-service=rpc-bind permanent
firewall-cmd --add-service=mountdpermanent
systemc tl restart fiewalld
mkdir -p /protected/project
chown deepak /protected/project/
ll /protected/
chcon -R -t public_content_t /protected/project/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
snota45
5 months ago
when relabeling a share with a selinux context label it is better to use semanage instead of chcon
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago