Previous | Table of Contents | Next |
The setup and administration of automounting on a network--running NIS+ on SunOS 5.x systems and NIS on SunOS 4.x systems--involves creating and maintaining NIS+ automount maps. The steps in the following sections describe how to create these maps on the NIS+ root master server. See "Administering NIS+ Automount Maps" later in this chapter for information on how to modify existing maps.
The auto_home map is created when you set up the NIS+ root master server. You do not need to create it separately. If you have AdminSuite's Database Manager, you can use it to read or edit the contents of this map and to set up home directory information for your users.
Follow these steps to set up your initial entries in the Auto_home database:
NOTE: You do not need to make an entry for the auto_home map in the NIS+ auto_master map. The entry is already included in the default auto_master map. Consult All About Administering NIS+ (mentioned earlier) for information on how to set up NIS+ and how to convert the contents of NIS maps into NIS+ tables.
Use the NIS+ command nistbladm to create and edit indirect maps on the NIS+ root master server.
NOTE: The nistbladm command requires a fully qualified name for the table--that is, the name of the table, followed by the directory where the NIS+ tables are stored and the domain name, respectively. Note that for NIS+ commands, the domain name of a fully qualified name ends in a period. For example, auto_master.org_dir.Sun.COM. is the fully qualified name for the auto_master table, which is in the directory org_dir in the domain Sun.COM.
nistbladm -c automount_map key=S value=S auto_table-name.org_dir.domain-name.
nistbladm -a key=mount-point value=options,pathname auto_table-name.org_dir.domain-name.
niscat -v auto_table-name.org_dir.domain-name.
niscat -o auto_master.org_dir.domain-name.
nistbladm -a key=mount-point value=map-name auto_master.org_dir.domain-name.
The auto_master map is only read at boot time or when the automounter is started. After you have completed creating new maps and have added the mount point and map name to the auto_master map, you must stop the automounter and restart it. With Solaris 2.3 and newer, you do not need to stop and restart the automounter. Instead, just run the automount command.
NOTE: For Solaris 2.2 and later, you can restart the automounter and read the auto_master map by booting the system. To avoid interrupting services, however, I suggest that you restart the automounter from the command line.
Follow these steps to stop the automounter and restart it:
CAUTION! Never use the -9 option to kill the automounter."
Previous | Table of Contents | Next |