Users » History » Version 3
Anonymous, 08/06/2008 11:00 AM
Updated Installation Guide: User Management
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 | 3 | Anonymous | |
93 | 3 | Anonymous | == Add new Users == |
94 | 2 | Anonymous | Make the following changes on the master node: |
95 | 1 | Anonymous | |
96 | 1 | Anonymous | * Add new users into ''/etc/passwd'': |
97 | 1 | Anonymous | {{{ |
98 | 1 | Anonymous | procksi:x:510:510:ProCKSI-Server:/home/procksi:/bin/bash |
99 | 1 | Anonymous | dxb:x:520:Daniel Barthel:/home/dxb:/bin/bash |
100 | 1 | Anonymous | }}} |
101 | 1 | Anonymous | |
102 | 1 | Anonymous | * Add an entry for the new users into ''/etc/shadow'': |
103 | 1 | Anonymous | {{{ |
104 | 1 | Anonymous | procksi:[Add Encrypted Password]:13483:0:99999:7::: |
105 | 1 | Anonymous | dxb:[Add Encrypted Password]:13755:0:99999:7::: |
106 | 1 | Anonymous | }}} |
107 | 1 | Anonymous | |
108 | 1 | Anonymous | * Add a new group into ''/etc/group'', and add all users who should have access (e.g. ''dxb''): |
109 | 1 | Anonymous | {{{ |
110 | 1 | Anonymous | procksi:x:510:dxb |
111 | 1 | Anonymous | }}} |
112 | 1 | Anonymous | The members for group procksi are now: ''procksi'', ''dxb'' |
113 | 1 | Anonymous | |
114 | 1 | Anonymous | * Generate home directory for ''procksi'' at ''/home/procksi''. Enter at the command line of the master node: |
115 | 1 | Anonymous | {{{ |
116 | 1 | Anonymous | mkdir /home/procksi |
117 | 1 | Anonymous | chown procksi.procksi /home/procksi |
118 | 1 | Anonymous | chmod 770 /home/procksi |
119 | 1 | Anonymous | }}} |
120 | 1 | Anonymous | |
121 | 3 | Anonymous | * Whenever users, groups, passwords are modified, update the NIS configuration. Enter at the command line: |
122 | 3 | Anonymous | {{{ |
123 | 3 | Anonymous | # cd /var/yp |
124 | 3 | Anonymous | # make |
125 | 3 | Anonymous | }}} |