Some touchups courtesy of Philippe Charnier.

This commit is contained in:
Bill Paul 1997-11-16 03:49:12 +00:00
parent d9cc92f584
commit d8207d546d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31182
2 changed files with 18 additions and 13 deletions

View File

@ -28,10 +28,10 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
.\" THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id: ypinit.8,v 1.1 1997/11/10 20:59:09 wpaul Exp $
.\" $Id: ypinit.8,v 1.1 1997/11/10 22:17:11 wpaul Exp $
.\"
.Dd November 10, 1997
.Dt YPINIT 1
.Dt YPINIT 8
.Os FreeBSD 3.0
.Sh NAME
.Nm ypinit
@ -71,7 +71,7 @@ the ypservers map.
On a slave server,
.Nm
creates the
.Pa /var/yp/$DOMAINNAME
.Pa /var/yp/$DOMAINNAME ,
populates it with copies of the NIS maps from the master. The maps
are obtained from the master using the
.Xr ypxfr 8
@ -82,7 +82,7 @@ the system is configured as an NIS client and is bound to the master
server,
.Nm
is able to use the
.Xr ypwhich 8
.Xr ypwhich 1
command to obtain a list of maps exported by the master server.
If the system is not configured as a client of the NIS master,
.Nm
@ -91,11 +91,10 @@ exist on the master. The system administrator can edit the script and
modify the map list if necessary. Otherwise, indivudual maps can
be transfered manually from the master using
.Xr ypxfr 8 .
.Pp
.Sh OPTIONS
.Nm
.Nm Ypinit
supports the following options:
.Bl -tag -width Fl
.Bl -tag -width indent
.It Fl m Op Ar domainname
Set up a master server. By default, the script sets up a server for
the system default domain. The user can override this default by specifying
@ -148,7 +147,7 @@ Passwd database source file
Netgroup data source file
.It Pa /var/yp/ypservers
Ypservers source file (generated by
.Nm ypinit )
.Nm Ns )
.El
.Sh SEE ALSO
.Xr mknetid 8 ,
@ -163,10 +162,16 @@ This version of
.Nm
is based on the
.Nm
script in OpenBSD. It first appeared in FreeBSD in
script in
.Bx Open .
It first appeared in
.Bx Free
in
.Fx 3.0 .
.Sh AUTHOR
The original script was written by
.An Mats O Jansson Aq moj@stacken.kth.se .
It was modified for FreeBSD by
It was modified for
.Bx Free
by
.An Bill Paul Aq wpaul@ctr.columbia.edu .

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: ypinit.sh,v 1.3 1997/11/10 20:48:54 wpaul Exp $
# $Id: ypinit.sh,v 1.1 1997/11/10 22:17:13 wpaul Exp $
#
# ypinit.sh - setup an master or slave server.
# (Taken from OpenBSD and modified for FreeBSD.)
@ -96,7 +96,7 @@ fi
if [ -z "${DOMAIN}" ]; then
cat << \__no_domain 1>&2
The local host's YP domain name has not been set. Please set it with
the domainname(8) command or pass the domain as an argument to ypinit(8).
the domainname(1) command or pass the domain as an argument to ypinit(8).
__no_domain
exit 1
@ -107,7 +107,7 @@ HOST=`${HOSTNAME}`
if [ -z "${HOST}" ]; then
cat << \__no_hostname 1>&2
The local host's hostname has not been set. Please set it with the
hostname(8) command.
hostname(1) command.
__no_hostname
exit 1