LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   automount home directories (https://www.linuxquestions.org/questions/linux-software-2/automount-home-directories-294211/)

alex r 02-24-2005 02:47 AM

automount home directories
 
Hi!
I'm trying to automount users home directories when they log on. The information about where to find the directory should come from NIS. On the central server I have a file to which the auto.master points to. This file contains entries like these:


john -rw,hard,intr host1:/home/john
bill -rw,hard,intr host3:/home/bill
sally -rw,hard,intr host5:/home/sally
fred -rw,hard,intr host9:/home/fred
jane -rw,hard,intr host1:/home/jane


Now this is really stupid in my opinion because I need to make an entry for every user. Isn't there a possibility to use variables or something like that so one line will be enough?

Or is it actually like this that I have to mount the path containing the home directories at starting time? I don't like that cause if the directory at the server will change I need to update every single workstation with the new path.

Best Regards,
Alex

trickykid 02-24-2005 07:38 AM

If your using NIS, it should actually handle this. I don't understand why you would be using NIS along with automount? :confused:

alex r 02-24-2005 10:02 PM

Sorry but I don't understand what you mean.

When a user logs on, the home directory from a distant server needs to get mounted. So the system takes a look into the auto.master which points to NIS. At NIS the corresponding map, let's call it auto.map, is provided. And this map has the entries I mentioned before. Now this is my point of understanding. Am I wrong? Please tell me what you exactely mean. Maybe you can also provide some configuration files?

Many thanks!


All times are GMT -5. The time now is 12:58 AM.