On Sat, 17 Jun 2000, Suresh Kumar. R wrote:
> Hi,
>
> Thanks for the reply. Is it that I should have one entry corresponding
> to each student in the auto.home ? I have more than 400 students, so
> is there any better alternatives?
>
If you are going to have them on just one or two machines, it is probably
best to not have individual entries for the students. Maybe you don't
even need to use autofs? Why not use plain NFS; chances are good that the
disk will always be mounted with 400 students and autofs. If you have
multiple servers with people moving around it is nice to have an entry for
each student in auto.home.
You could also do something like:
foreach i (`cat /etc/passwd|cut -d : -f 1`)
echo "$i -hard,intr,rsize=8192,wsize=8192 server1:/home/$i" >> auto.home
(foreach is a tcsh thing)
to create each entry in auto.home (don't forget to remove the entries for
root, admin, etc.).
later,
Rich