SUMMARY: NIS+ automount map

From: Thorel Jean-Francois (thorel@Clamart.EST.SLB.COM)
Date: Wed Aug 18 1993 - 16:50:42 CDT


Hi,
 
My original posting:

> Does anyone know a way to load auto_home NIS+ map from a NIS map or ascii file?
>
> The 'nisaddent' utility allows only for aliases, bootparams, ethers,
> group, hosts, netid, netmasks, networks, passwd, protocols, publickey,
> rpc, services, shadow, or timezone but not for auto_home.

1-
You need to use a slightly different syntax to populate an automount
map. It's in TFM, but not very clearly.

Use this:
nisaddent -t auto_home.org_dir key-value
I usually use:
echo "$entry" | /usr/lib/nis/nisaddent -t auto_home.org_dir key-value
or
cat auto_home_file | /usr/lib/nis/nisaddent -t auto_home.org_dir key-value

2-
I sued awk with nistbladm and Answerbook!! ;-)
nisaddent is just a hacky way of using nistbladm anyway! You CAN add mount
options for auto_home and auto_master NIS+ maps. You just add them to the
"value" field. There is no "generic" support for automount maps via the
nisaddent command, I don't know why! It's just the old key/value pair known
and loved by NISers all over the globe.

Thanks to all who responded:
Leslie Dreyer Kalra lbd@mhcnet.att.com
Robert P K Lyle rlyle@nl.oracle.com

Jean-Francois THOREL Etudes et Productions SCHLUMBERGER
UNIX System engineer 26, rue de la cavee
                                         92140 Clamart
Tel : 33-1 4537-2298 France
Fax : 33-1 4537-2021
Internet : thorel@Clamart.EST.SLB.COM
VAX mail : EPS::THOREL



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:06 CDT