HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 93

etc/passwd, domainname, etc/rc.config.d/namesvrs, NIS_DOMAIN, NIS_SLAVE_SERVER, NIS_CLIENT,

Page 93 highlights

NIS CAUTION: Do not put an asterisk (*) in the password field on HP systems. On Sun systems, an asterisk in the password field prevents people from logging in as + when NIS is not running. However, on HP systems, the asterisk prevents all users from logging in when NIS is running. The changes you make to the /etc/passwd file on an NIS slave server are the same changes you make on an NIS client. The following is an example /etc/passwd file on an NIS slave server: root:0AnhFBmriKvHA:0:3: :/:/bin/ksh daemon:*:1:5::/:/bin/sh bin:*:2:2::/bin:/bin/sh adm:*:4:4::/usr/adm:/bin/sh uucp:*:5:3::/usr/spool/uucppublic:/usr/lib/uucp/uucico lp:*:9:7::/usr/spool/lp:/bin/sh hpdb:*:27:1:ALLBASE:/:/bin/sh +::-2:60001::: To Enable NIS Slave Server Capability Follow these steps to enable NIS slave server capability: 1. Make sure the NIS master server is already configured and running NIS. 2. Login as root to the host that will be the slave server. 3. On the host that will be the slave server, ensure that the PATH environment variable includes the following directory paths: /var/yp /usr/lib/netsvc/yp /usr/ccs/bin 4. Issue the following command to set the NIS domain name: # /usr/bin/domainname domainname where domainname is the same as the domain name on the NIS master server. 5. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain name: NIS_DOMAIN= domainname 6. In the /etc/rc.config.d/namesvrs file, set the NIS_SLAVE_SERVER and NIS_CLIENT variables to 1, as follows: NIS_SLAVE_SERVER=1 NIS_CLIENT=1 If the slave server is a master server in another NIS domain, set the NIS_MASTER_SERVER variable to 1 and the NIS_SLAVE_SERVER variable to 0. The yppasswdd daemon, which is required on the master server, is started only if NIS_MASTER_SERVER=1. 7. Issue the following command to set up the NIS slave server and copy the NIS maps from the master server: # /usr/sbin/ypinit -s NIS_server_name [DOM= domainname] The NIS_server_name is the name of the master server or a slave server that has a complete set of upto-date maps for the domain. If the slave server will serve a domain different from the one set by the domainname command, specify the domain name after NIS_server_name. 88

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

NIS
88
CAUTION: Do not put an asterisk (
*
) in the password field on HP systems. On Sun systems, an asterisk in
the password field prevents people from logging in as
+
when NIS is not running. However, on HP
systems, the asterisk prevents all users from logging in when NIS is running.
The changes you make to the
/etc/passwd
file on an NIS slave server are the same changes you make on an
NIS client. The following is an example
/etc/passwd
file on an NIS slave server:
root:0AnhFBmriKvHA:0:3: :/:/bin/ksh
daemon:*:1:5::/:/bin/sh
bin:*:2:2::/bin:/bin/sh
adm:*:4:4::/usr/adm:/bin/sh
uucp:*:5:3::/usr/spool/uucppublic:/usr/lib/uucp/uucico
lp:*:9:7::/usr/spool/lp:/bin/sh
hpdb:*:27:1:ALLBASE:/:/bin/sh
+::-2:60001:::
To Enable NIS Slave Server Capability
Follow these steps to enable NIS slave server capability:
1.
Make sure the NIS master server is already configured and running NIS.
2.
Login as
root
to the host that will be the slave server.
3.
On the host that will be the slave server, ensure that the PATH environment variable includes the
following directory paths:
/var/yp
/usr/lib/netsvc/yp
/usr/ccs/bin
4.
Issue the following command to set the
NIS domain name:
# /usr/bin/domainname domainname
where
domainname
is the same as the domain name on the NIS master server.
5.
In the
/etc/rc.config.d/namesvrs
file, set the
NIS_DOMAIN
variable to the domain name:
NIS_DOMAIN= domainname
6.
In the
/etc/rc.config.d/namesvrs
file, set the
NIS_SLAVE_SERVER
and
NIS_CLIENT
variables to
1
, as follows:
NIS_SLAVE_SERVER=1
NIS_CLIENT=1
If the slave server is a master server in another NIS domain, set the
NIS_MASTER_SERVER
variable to
1
and the
NIS_SLAVE_SERVER
variable to
0
. The
yppasswdd
daemon, which is
required on the master server, is started only if
NIS_MASTER_SERVER=1
.
7.
Issue the following command to set up the NIS slave server and copy the NIS maps from the master
server:
# /usr/sbin/ypinit -s NIS_server_name [DOM= domainname]
The
NIS_server_name
is the name of the master server or a slave server that has a complete set of up-
to-date maps for the domain. If the slave server will serve a domain different from the one set by the
domainname
command, specify the domain name after
NIS_server_name
.