https://wiki.preterhuman.net/index.php?title=Nisserver&feed=atom&action=historyNisserver - Revision history2024-03-29T00:58:44ZRevision history for this page on the wikiMediaWiki 1.35.0https://wiki.preterhuman.net/index.php?title=Nisserver&diff=14275&oldid=prevNetfreak: Created page with "<pre> nisserver(1M) Maintenance Commands nisserver(1M) NAME nisserver - set up NIS+ servers. SYNOPSIS /usr/lib/nis/nisserver -r [-x] [-f] [..."2020-07-23T04:08:21Z<p>Created page with "<pre> nisserver(1M) Maintenance Commands nisserver(1M) NAME nisserver - set up NIS+ servers. SYNOPSIS /usr/lib/nis/nisserver -r [-x] [-f] [..."</p>
<p><b>New page</b></p><div><pre><br />
<br />
<br />
<br />
nisserver(1M) Maintenance Commands nisserver(1M)<br />
<br />
<br />
<br />
NAME<br />
nisserver - set up NIS+ servers.<br />
<br />
SYNOPSIS<br />
/usr/lib/nis/nisserver -r [-x] [-f] [ -v][-Y]<br />
[-d <NIS+_domain>] [-g < NIS+_groupname>]<br />
[-l <network_passwd>]<br />
<br />
/usr/lib/nis/nisserver -M [-x] [-f] [ -v] [-Y]<br />
-d <NIS+_domain> [-g <NIS+_groupname>]<br />
[-h <NIS+_server_host>]<br />
<br />
/usr/lib/nis/nisserver -R [-x] [-f] [ -v] [-Y]<br />
[-d <NIS+_domain>] [-h <NIS+_server_host>]<br />
<br />
DESCRIPTION<br />
The nisserver shell script can be used to set up a root mas-<br />
ter, non-root master, and replica NIS+ servers with level 2<br />
security (DES).<br />
<br />
When setting up a new domain, this script creates the NIS+<br />
directories (including groups_dir and org_dir) and system<br />
table objects for the domain specified. It does not popu-<br />
late the tables. You will need to use nispopulate(1M) to<br />
populate the tables.<br />
<br />
Use the first synopsis (-r) to set up a root master server.<br />
You must be logged in as super-user on the server machine.<br />
<br />
Use the second synopsis (-M) to set up a non-root master<br />
server for the specified domain. You must be logged in as an<br />
NIS+ principal on a NIS+ machine and have write permission<br />
to the parent directory of the domain that you are setting<br />
up. The new non-root master server machine must already be<br />
an NIS+ client (see nisclient(1M)) and have the rpc.nisd<br />
daemon running (see rpc.nisd(1M)).<br />
<br />
Use the third synopsis (-R) to set up a replica server for<br />
both root and non-root domains. You must be logged in as an<br />
NIS+ principal on an NIS+ machine and have write permission<br />
to the parent directory of the domain that you are replicat-<br />
ing. The new non-root replica server machine must already be<br />
an NIS+ client (see nisclient(1M)) and have the rpc.nisd<br />
daemon running (see rpc.nisd(1M)).<br />
<br />
OPTIONS<br />
- d <NIS+_domain> specifies the name for the NIS+<br />
domain. The default is your local<br />
domain.<br />
<br />
-f forces the NIS+ server setup without<br />
prompting for confirmation.<br />
<br />
-g <NIS+_groupname> specifies the NIS+ group name for the<br />
new domain. This option is not valid<br />
with -R option. The default group is<br />
admin.<domain>.<br />
<br />
-h <NIS+_server_host> specifies the hostname for the NIS+<br />
server. It must be a valid host in<br />
the local domain. Use a fully quali-<br />
fied hostname (for example,<br />
hostx.xyz.sun.com.) to specify a host<br />
outside of your local domain. This<br />
option is ONLY used for setting up<br />
non-root master or replica servers.<br />
The default for non-root master server<br />
setup is to use the same list of<br />
servers as the parent domain. The<br />
default for replica server setup is<br />
the local hostname.<br />
<br />
-l <network_password> specifies the network password with<br />
which to create the credentials for<br />
the root master server. This option<br />
is ONLY used for master root server<br />
setup (-r option). If this option is<br />
not specified, the script will prompt<br />
you for the login password.<br />
<br />
-M sets up the specified host as a mas-<br />
ter server. Make sure that<br />
rpc.nisd(1M) is running on the new<br />
master server before this command is<br />
executed.<br />
<br />
-R sets up the specified host as a<br />
replica server. Make sure that<br />
rpc.nisd(1M) is running on the new<br />
replica server.<br />
<br />
-r sets up the server as a root master<br />
server. Use the -R option to set up a<br />
root replica server.<br />
<br />
-v runs the script in verbose mode.<br />
<br />
-x turns the "echo" mode on. The script<br />
just prints the commands that it would<br />
have executed. Note that the commands<br />
are not actually executed. The<br />
default is off.<br />
<br />
-Y sets up an NIS+ server with NIS-<br />
compatibility mode. The default is to<br />
set up the server without NIS-<br />
compatibility mode.<br />
<br />
EXAMPLES<br />
To set up a root master server for domain sun.com. :<br />
<br />
root_server# /usr/lib/nis/nisserver -r -d sun.com.<br />
<br />
For the following examples make sure that the new servers<br />
are NIS+ clients and rpc.nisd is running on these hosts<br />
before executing nisserver.<br />
<br />
To set up a replica server for domain sun.com. on host sun-<br />
replica :<br />
<br />
root_server# /usr/lib/nis/nisserver -R -d sun.com. \<br />
-h sunreplica<br />
<br />
To set up a non-root master server for domain xyz.sun.com.<br />
on host sunxyz with the NIS+ groupname as admin-<br />
mgr.xyz.sun.com. :<br />
<br />
root_server# /usr/lib/nis/nisserver -M -d xyz.sun.com. \<br />
-h sunxyz -g admin-mgr.xyz.sun.com.<br />
<br />
<br />
SunOS 5.4 Last change: 01 Jun 1993<br />
</pre><br />
<br />
[[Category:UNIX]]</div>Netfreak