map2ascii(8) CLIX map2ascii(8)
NAME
map2ascii - Run Network Information Service (NIS) database conversion
commands
SYNOPSIS
/etc/yp/map2ascii/passwd.nam
/etc/yp/map2ascii/group.nam
/etc/yp/map2ascii/hosts.nam
/etc/yp/map2ascii/netwks.nam
/etc/yp/map2ascii/proto.no
/etc/yp/map2ascii/rpc.no
/etc/yp/map2ascii/srvcs.nam
DESCRIPTION
The NIS map2ascii commands are shell scripts used by ypxfr to convert NIS
databases (maps) into their ascii counterparts. The names of the files in
the directory, /etc/yp/map2ascii, correspond to shortened System V NIS map
names. After transferring an NIS map, ypxfr checks for the existence of a
file in the map2ascii directory with the same name as the map. If it
exists, ypxfr forks a shell to run the script.
Currently, conversion commands are supported for the passwd and group
files, as well as several of the network databases. Conversion commands
can be created for other NIS maps and placed in the /etc/yp/map2ascii
directory.
The passwd.nam script combines the contents of the passwd.nam map and the
contents of /etc/passwd.local (if it exists) to make the /etc/passwd file.
Logins present in /etc/passwd.local have precedence over those in the map.
The group.nam script combines the contents of the group.nam map and the
contents of /etc/group.local (if it exists) to make the /etc/group file.
As with the passwd.nam example, group entries present in /etc/group.local
have precedence over groups in the map.
The hosts.nam script copies the contents of the hosts.byname map to
/etc/hosts. The concept of a local host table is not supported.
The netwks.nam script copies the contents of the networks.byname map to
/etc/networks. The concept of a local networks table is not supported.
The proto.no script copies the contents of the protocols.bynumber map to
2/94 - Intergraph Corporation 1
map2ascii(8) CLIX map2ascii(8)
/etc/protocols.
The concept of a local protocols table is not supported.
The rpc.no script copies the contents of the rpc.bynumber map to /etc/rpc.
The concept of a local rpc table is not supported.
The srvcs.nam script copies the contents of the services.byname map to
/etc/services. The concept of a local services table is not supported.
FILES
/etc/passwd
Database of login and password information.
/etc/passwd.local
Database of password entries that override or supplement entries in
the NIS database.
/etc/group
Database of group definitions.
/etc/group.local
Database of group entries that override or supplement entries in an
NIS database.
/etc/hosts
Database of known hosts on the network.
/etc/networks
Database of known networks.
/etc/protocols
Database of known protocols.
/etc/rpc
Database of RPC program numbers.
/etc/services
Database of known services.
EXAMPLES
The map2ascii commands are used only by the ypxfr command.
DIAGNOSTICS
Diagnostic messages are self-explanatory.
EXIT VALUES
Each of the map2ascii commands exits with a value of 0 if successful. If
2 Intergraph Corporation - 2/94
map2ascii(8) CLIX map2ascii(8)
unsuccessful, it exits with a value of 1.
RELATED INFORMATION
Commands: ypxfr(8)
Files: passwd(4), group(4), hosts(4), networks(4), protocols(4), rpc(4),
services(4), ypmapxlate(4)
2/94 - Intergraph Corporation 3