Users » History » Version 5

Anonymous, 08/06/2008 11:26 AM

1 1 Anonymous
2 5 Anonymous
h1. User Management
3 1 Anonymous
4 1 Anonymous
5 5 Anonymous
6 5 Anonymous
h2. Yellow Pages
7 5 Anonymous
8 5 Anonymous
9 5 Anonymous
The _Network Information Service_ (NIS), also called _Yellow Pages_ (YP) provides a single point for the entire cluster administration.
10 5 Anonymous
11 5 Anonymous
12 5 Anonymous
h3. Configuration of the Master Node
13 5 Anonymous
14 5 Anonymous
* Set NIS domain name on the master node. Enter at the command line:
15 5 Anonymous
<pre>
16 3 Anonymous
  # domainname procksi.nis
17 5 Anonymous
</pre>
18 3 Anonymous
19 5 Anonymous
* Add NIS domain name to _/etc/sysconfig/network_:
20 5 Anonymous
<pre>
21 3 Anonymous
  NISDOMAIN = procksi.nis
22 5 Anonymous
</pre>
23 1 Anonymous
24 5 Anonymous
* Modify _/etc/yp.conf_:
25 5 Anonymous
<pre>
26 3 Anonymous
  ypserver 127.0.0.1
27 5 Anonymous
</pre>
28 3 Anonymous
29 5 Anonymous
* Enable NIS server at boot time. Enter at the command line:
30 5 Anonymous
<pre>
31 1 Anonymous
  # /sbin/chkconfig --add ypserv  
32 1 Anonymous
  # /sbin/chkconfig --add yppasswdd
33 3 Anonymous
  # /sbin/chkconfig ypserv on
34 3 Anonymous
  # /sbin/chkconfig yppasswdd on
35 5 Anonymous
</pre>
36 1 Anonymous
37 5 Anonymous
* Start the NIS server. Enter at the command line:
38 5 Anonymous
<pre>
39 1 Anonymous
  # /sbin/service ypserv start
40 1 Anonymous
  # /sbin/service yppasswdd start
41 5 Anonymous
</pre>
42 1 Anonymous
43 5 Anonymous
* Check that the NIS server is listening. Enter at the command line:
44 5 Anonymous
<pre>
45 3 Anonymous
  # rpcinfo -p localhost |grep yp
46 1 Anonymous
   100009    1   udp    906  yppasswdd
47 1 Anonymous
   100004    2   udp    938  ypserv
48 1 Anonymous
   100004    1   udp    938  ypserv
49 1 Anonymous
   100004    2   tcp    941  ypserv
50 3 Anonymous
   100004    1   tcp    941  ypserv
51 5 Anonymous
</pre>
52 3 Anonymous
53 5 Anonymous
* Initialise the NIS databases. Enter at the command line:
54 5 Anonymous
<pre>
55 1 Anonymous
  /usr/lib64/yp/ypinit -m
56 5 Anonymous
</pre>
57 1 Anonymous
 
58 5 Anonymous
* Enable NIS clients at boot time. Enter at the command line:
59 5 Anonymous
<pre>
60 3 Anonymous
  # /sbin/chkconfig --add ypbind  
61 1 Anonymous
  # /sbin/chkconfig --add ypxfrd  
62 1 Anonymous
  # /sbin/chkconfig ypbind on
63 1 Anonymous
  # /sbin/chkconfig ypxfrd on
64 5 Anonymous
</pre>
65 1 Anonymous
66 1 Anonymous
67 5 Anonymous
h3. Configuration of the Slave Nodes
68 5 Anonymous
69 5 Anonymous
70 5 Anonymous
* Add NIS domain name to _/etc/sysconfig/network_:
71 5 Anonymous
<pre>
72 1 Anonymous
  NISDOMAIN = procksi.nis
73 5 Anonymous
</pre>
74 1 Anonymous
75 5 Anonymous
* Modify _/etc/yp.conf_:
76 5 Anonymous
<pre>
77 3 Anonymous
  domain procksi.nis server master01.procksi.local
78 5 Anonymous
</pre>
79 1 Anonymous
80 5 Anonymous
* Enable NIS server at boot time. Enter at the command line:
81 5 Anonymous
<pre>
82 3 Anonymous
  /sbin/chkconfig --add ypbind
83 3 Anonymous
  /sbin/chkconfig ypbind on
84 5 Anonymous
</pre>
85 3 Anonymous
86 5 Anonymous
* Start the NIS server. Enter at the command line:
87 5 Anonymous
<pre>
88 4 Anonymous
  /sbin/service ypbind start
89 5 Anonymous
</pre>
90 3 Anonymous
91 5 Anonymous
* Check that the NIS binding is listening. Enter at the command line:
92 5 Anonymous
<pre>
93 4 Anonymous
  # rpcinfo -p localhost |grep yp
94 4 Anonymous
   100007    2   udp    856  ypbind
95 4 Anonymous
   100007    1   udp    856  ypbind
96 4 Anonymous
   100007    2   tcp    859  ypbind
97 3 Anonymous
   100007    1   tcp    859  ypbind
98 5 Anonymous
</pre>
99 1 Anonymous
100 5 Anonymous
101 5 Anonymous
h2. Add [[ProCKSI]] groups
102 5 Anonymous
103 1 Anonymous
Make the followign changes on the master node:
104 1 Anonymous
105 5 Anonymous
* Add new groups into _/etc/group_:
106 5 Anonymous
<pre>
107 1 Anonymous
   procksi_admin:x:520:
108 1 Anonymous
   procksi_dev:x:510:
109 5 Anonymous
</pre>
110 1 Anonymous
111 5 Anonymous
112 5 Anonymous
h2. Add new Users
113 5 Anonymous
114 4 Anonymous
Make the following changes on the master node:
115 4 Anonymous
116 5 Anonymous
* Add new users into _/etc/passwd_: 
117 5 Anonymous
<pre>
118 1 Anonymous
   procksi:x:510:510:ProCKSI-Server:/home/procksi:/bin/bash
119 1 Anonymous
   dxb:x:520:Daniel Barthel:/home/dxb:/bin/bash
120 5 Anonymous
</pre>
121 1 Anonymous
122 5 Anonymous
* Add an entry for the new users into _/etc/shadow_: 
123 5 Anonymous
<pre>
124 1 Anonymous
   procksi:[Add Encrypted Password]:13483:0:99999:7:::
125 3 Anonymous
   dxb:[Add Encrypted Password]:13755:0:99999:7:::
126 5 Anonymous
</pre>
127 3 Anonymous
128 5 Anonymous
* Add new procksi developers to group _procksi_dev_ and new procksi administrator to _procksi_admin_. Edit _/etc/group_:
129 5 Anonymous
<pre>
130 1 Anonymous
   procksi_admin:x:520:procksi, dxb
131 1 Anonymous
   procksi_dev:x:510:procksi, dxb
132 5 Anonymous
</pre>
133 1 Anonymous
134 5 Anonymous
* Generate home directory for _procksi_ at _/home/procksi_. Enter at the command line of the master node: 
135 5 Anonymous
<pre>
136 1 Anonymous
   mkdir /home/procksi
137 1 Anonymous
   chown procksi.procksi /home/procksi
138 1 Anonymous
   chmod 770 /home/procksi
139 5 Anonymous
</pre>
140 1 Anonymous
141 5 Anonymous
* Whenever users, groups, passwords are modified, update the NIS configuration. Enter at the command line:
142 5 Anonymous
<pre>
143 1 Anonymous
  # cd /var/yp
144 1 Anonymous
  # make
145 5 Anonymous
</pre>