Table 8–1 is a summary of the steps required to configure a non-root domain. It assumes the simplest case, so be sure you are familiar with the more thorough task descriptions before you use this summary as a reference. This summary does not show the server's responses to each command.
Table 8–1 Setting Up a Subdomain Command Summary
Tasks |
Commands |
---|---|
Log in as superuser to domain master. |
smaster% su |
Name the domain's admin group. |
# NIS_GROUP=admin.sales.doc.com. # export NIS_GROUP |
Create the domain's directory and designate its servers. |
# nismkdir -m smaster -s salesreplica sales.doc.com. |
Create org_dir, groups_dir, and tables. (For NIS-compatibility, use -Y.) |
# /usr/lib/nis/nissetup sales.doc.com. |
Create the admin group. |
# nisgrpadm -c admin.sales.doc.com. |
Assign full group rights to the domain's directory. |
# nischmod g+rmcd sales.doc.com. |
Add servers to admin group. |
# nisgrpadm -a admin.sales.doc.com. smaster.doc.com. sreplica.doc.com. |
Add credentials for other admins. |
# nisaddcred -p 22244 -P juan.sales.doc.com. local # nisaddcred -p unix.22244@sales.doc.com. juan.sales.doc.com. DES |
Add admins to domain's admin group. |
# nisgrpadm -a admin.sales.doc.com. juan.sales.doc.com. |