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