nerdexam
Red_Hat

EX300(23Q) · Question #9

Mount /nfsshare directory on desktopX under /public directory persistently at system boot time. The user harry able to write files on /secure directory

yum install -y nfs-utils wget -O /etc/krb5.keytab http://station.network0.example.com/pub/keytabs/desktopX.keytab systemctl start nfs-secure systemctl enable nfs-secure mkdir -p /public vim /etc/fstab server1.example.com:/nfsshare /public nfs defaults,sync 0 0 mkdir -p…

Configure NFS Client

Question

Mount /nfsshare directory on desktopX under /public directory persistently at system boot time.
  • The user harry able to write files on /secure directory

Explanation

yum install -y nfs-utils

wget -O /etc/krb5.keytab http://station.network0.example.com/pub/keytabs/desktopX.keytab

systemctl start nfs-secure systemctl enable nfs-secure

mkdir -p /public

vim /etc/fstab

server1.example.com:/nfsshare /public nfs defaults,sync 0 0

mkdir -p /secure/protected

vim /etc/fstab

server1.example.com:/nfssecure/protected /secure/protected nfs defaults,v4.2,sec=krb5p,sync 0 0

Verification from DesktopX: ssh harry@localhost cd /secure/protected echo "is it writable?" >> test.txt

Topics

#NFS client mount#/etc/fstab#persistent mount#write permissions

Community Discussion

No community discussion yet for this question.

Full EX300(23Q) Practice