SUMMARY: Automount Direct Map in NIS

From: J P <techjp1974_at_yahoo.com>
Date: Thu May 31 2001 - 11:15:58 EDT
Thanks to all who have replied to my question.
 
I would like to specially thank to Mr.Sean Quaint ,
who very promptly helped me till the solution.
I have done all the things related to  direct map in
NIS.
But still I was not able to get the directory from the
client.
At last  Sean suggested me to remove comment the line
+auto_master in  auto_master file.
That went cool.
Now it is working fine.

Once again thanks for all who helped me

Rgds

JP.

Sean's answer to my question:

In your /var/yp/Makefile you need to add support for
the auto.direct
map.  Easiest way to do this is copy the auto.home
stuff and change the
names to point to auto.direct and auto_direct
respectivly.  Be sure to
use a copy command (like y15y in vi -- there are 15
lines to the 
default
auto.home.time target).  If you highlight with your
mouse then paste it
will not work as necessary tabs will be converted to
spaces.  Also be
sure to add auto.direct to the all target and add an
auto.direct entry
to the end of the makefile.  Then create your
/etc/auto_direct file 
with
the entry

    /tools       server:/export/tools

And also ensure that the /etc/auto_master map has the
entry

    /-           auto_direct

Then run the make command on the master to build the
maps.  Your slaves
will need to manually pull the new map down.  Run
/usr/lib/netsvc/yp/ypxfr auto.direct on them (or
ypinit -s <master>,
whichever you prefer) to get the new map.  Everyone
will need to 
somehow
run the automount command since the master and direct
maps have been
changed (it might be eaier to reboot your clients to
do this).

That should do it.

Sean Quaint




My original question was:

 Hi Gurus,
> 
>   I got some solaris 7 boxes with NIS server. I
wanted
> to add a automount direct map to NIS.
> ie, in all the boxes i would like to get  /tools
> directory.
> Could anyone pls tell me the step by step
information
> about how to do this ?
> 
> Thanx in advance
> 
> JP


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
Received on Thu May 31 16:15:58 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:55 EDT