Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 34 discussion

Actual exam question from RedHat's EX200
Question #: 34
Topic #: 1
[All EX200 Questions]

SIMULATION -
Configure autofs.
Configure the autofs automatically mount to the home directory of LDAP, as required: server.domain11.example.com use NFS to share the home to your system. This file system contains a pre configured home directory of user ldapuserX.
Home directory of ldapuserX is:
server.domain11.example.com /home/guests/ldapuser
Home directory of ldapuserX should automatically mount to the ldapuserX of the local /home/guests Home directory's write permissions must be available for users ldapuser1's password is password

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
yum install -y autofs
mkdir /home/rehome
/etc/auto.master
/home/rehome/etc/auto.ldap

Keep then exit -
cp /etc/auto.misc /etc/auto.ldap
/etc/auto.ldap
ldapuserX -fstype=nfs,rw server.domain11.example.com:/home/guests/

Keep then exit -
systemctl start autofs
systemctl enable autofs
su - ldapuserX// test
If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the server.domain11.example.com:/home/guests/ to server.domain11.example.com:/home/guests/ldapuserX. What is multi-level directory? It means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
PENNSHARK
3 months, 1 week ago
yum install autofs nfs-utils -y /home/guests /etc/auto.ldap ldapuserX -fstype=nfs,rw,nosuid,softserver.domain11.example.com:/home/guests/ldapuserX chown -R ldapuser1:ldapuser1 /home/guests/ldapuserX chmod -R 700 /home/guests/ldapuserX systemctl enable --now autofs
upvoted 1 times
...
VforVodoo
8 months ago
vi /etc/auto.master add "/home/guests /etc/auto.ldap vi /etc/auto.ldap add "ldapuserX server.domain11.example.com:/home/guests/ldapuserX" #No need to specify -fstype since it was NFS, see 'man autofs'
upvoted 1 times
...
VforVodoo
8 months ago
vi /etc/auto.master add "/home/guests /etc/auto.ldap vi /etc/auto.ldap add "ldapuserX server.domain11.example.com:/home/guests/ldapuserX" #No need to specify -fstype since it was NFS, see 'man autofs'
upvoted 1 times
...
Hayder_Alobaidi
1 year, 9 months ago
Is this still valid in REL8 ?
upvoted 3 times
urWaifu
1 year, 6 months ago
I had 1 try on the exam and yes, we have to set a home directory for a user using autofs
upvoted 2 times
...
...
Stachomir
2 years, 9 months ago
vim /etc/auto.master.d/demo.autofs (/home/guestes /etc/auto.demo) vim /etc/auto.demo (ldapuserX -fstype=nfs,rw,sync server.domain11.example.com:/home/guests/ldapuserX) systemctl enable --now autofs
upvoted 4 times
cloudyhr
2 years, 3 months ago
we also have to edit /etc/exports and added below line /home/guests/ldapuserX 192.168.0.0/24(rw,sync,no_root_squash)
upvoted 2 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 ...