Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Certification Preparation
Other/General Certifications
Automount the home directory for the ldapuser of your system - RHEL6
devhda
Automount the home directory for the ldapuser of your system
Note the following:
instructor.example.com(192.168.0.254) "Nfs exports" /home/guests to your system where "x" is your station ip.
Ldapuser's home directory is instructor.example.com:/home/guests/ldapuserX.
Ldapuser's home directory should be automounted locally beneath at /home/guests/ldapuserX.
While login with any of the ldapuser then only home directory should accesible from your system that ldapuserX.
Proposed solution:
# vim /etc/auto.master
--> Append the following entry
/home/guests /etc/auto.guests
--> save and exit
--> Create the file for the slave map as specified in /etc/auto.master
# vim /etc/auto.guests
--> type the following line
ldapuser
X
instructor.example.com:/home/guests/ldapuser
X
--> save and exit
# service autofs reload
# su - ldapuserX
Note: You should not get any home directory error
=========================================================
My 2 questions:
1 - Shouldn't you, first of all, edit /etc/hosts to add this line?
192.168.0.254 instructor.example.com
2 - When it says
where "x" is your station ip
, does that mean that the X that I've colored in red in the command "
ldapuser
X
instructor.example.com:/home/guests/ldapuser
X
"
should be replaced by the IP of your workstation?
i.e., if your workstation is 192.168.0.100, then the actual command to enter would be:
"
ldapuser
192.168.0.100
instructor.example.com:/home/guests/ldapuser
192.168.0.100
"
is it correct? or should you leave that as
ldapuser
X
instructor.example.com:/home/guests/ldapuser
X
?
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
There are no comments yet
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS