Users » History » Version 3

« Previous - Version 3/5 (diff) - Next » - Current version
Anonymous, 08/06/2008 11:00 AM
Updated Installation Guide: User Management


= User Management =

Yellow Pages

The ''Network Information Service'' (NIS), also called ''Yellow Pages'' (YP) provides a single point for the entire cluster administration.

=== Configuration of the Master Node === * Set NIS domain name on the master node. Enter at the command line: {{{ # domainname procksi.nis
}}}

  • Add NIS domain name to ''/etc/sysconfig/network'': {{{
    NISDOMAIN = procksi.nis
    }}}
  • Modify ''/etc/yp.conf'': {{{
    ypserver 127.0.0.1
    }}}
  • Enable NIS server at boot time. Enter at the command line: {{{ # /sbin/chkconfig --add ypserv # /sbin/chkconfig --add yppasswdd # /sbin/chkconfig ypserv on # /sbin/chkconfig yppasswdd on
    }}}
  • Start the NIS server. Enter at the command line: {{{ # /sbin/service ypserv start # /sbin/service yppasswdd start
    }}}
  • Check that the NIS server is listening. Enter at the command line: {{{ # rpcinfo -p localhost |grep yp
    100009 1 udp 906 yppasswdd
    100004 2 udp 938 ypserv
    100004 1 udp 938 ypserv
    100004 2 tcp 941 ypserv
    100004 1 tcp 941 ypserv
    }}}
  • Initialise the NIS databases. Enter at the command line: {{{
    /usr/lib64/yp/ypinit -m
    }}}
  • Enable NIS clients at boot time. Enter at the command line: {{{ # /sbin/chkconfig --add ypbind # /sbin/chkconfig --add ypxfrd # /sbin/chkconfig ypbind on # /sbin/chkconfig ypxfrd on
    }}}

=== Configuration of the Slave Nodes ===

  • Add NIS domain name to ''/etc/sysconfig/network'': {{{
    NISDOMAIN = procksi.nis
    }}}
  • Modify ''/etc/yp.conf'': {{{
    domain procksi.nis server master01.procksi.local
    }}}
  • Enable NIS server at boot time. Enter at the command line: {{{
    /sbin/chkconfig --add ypbind
    /sbin/chkconfig ypbind on
    }}}
  • Start the NIS server. Enter at the command line: {{{
    /sbin/service ypbind start
    }}}
  • Check that the NIS binding is listening. Enter at the command line: {{{ # rpcinfo -p localhost |grep yp
    100007 2 udp 856 ypbind
    100007 1 udp 856 ypbind
    100007 2 tcp 859 ypbind
    100007 1 tcp 859 ypbind
    }}}
Add new Users
Make the following changes on the master node: * Add new users into ''/etc/passwd'': {{{
procksi:x:510:510:ProCKSI-Server:/home/procksi:/bin/bash
dxb:x:520:Daniel Barthel:/home/dxb:/bin/bash
}}} * Add an entry for the new users into ''/etc/shadow'': {{{
procksi:[Add Encrypted Password]:13483:0:99999:7:::
dxb:[Add Encrypted Password]:13755:0:99999:7:::
}}} * Add a new group into ''/etc/group'', and add all users who should have access (e.g. ''dxb''): {{{
procksi:x:510:dxb
}}}
The members for group procksi are now: ''procksi'', ''dxb'' * Generate home directory for ''procksi'' at ''/home/procksi''. Enter at the command line of the master node: {{{
mkdir /home/procksi
chown procksi.procksi /home/procksi
chmod 770 /home/procksi
}}} * Whenever users, groups, passwords are modified, update the NIS configuration. Enter at the command line: {{{ # cd /var/yp # make
}}}