lazyrunner50
Programmer
If I have an NFS server which is exporting several users home directories, and I want to be able to mount the home directories on another box on my LAN, do I need to put each similar to this:
I'd like to be able to do it for a large number of users, and it would be tedious to maintain the password file as well as auto.home for all the users. I looked at indirect maps...not sure if I understand them, but would it work if I did this?
I'm assuming that would allow me to mount any user under /home without having to put their username/password in the passwd file (how does the login process know this...?)
Code:
$cat /etc/auto.master
/home auto.home
$cat /etc/auto.home
testUser nfsServer:/export/home/& -nosuid
$tail -1 /etc/passwd
testUser:x:505:505::/home/testUser:/bin/bash
Code:
$cat /etc/auto.master
/home auto.home
$cat /etc/auto.home
* nfsServer:/export/home/&
I'm assuming that would allow me to mount any user under /home without having to put their username/password in the passwd file (how does the login process know this...?)