Tuesday 7 June 2011

NIS


NIS (Network Information Service)
Network Information Service or Server. It provides information about the network users. It is just like as Domain Controller in Windows Server.
            It store account related information, group related information, authentication and password account history.
Configuration files:

            Requirements:
1.    YUM
2.    DHCP
3.    DNS

Install the following RPM’s on the server end:
# yum install ypserv
# yum install ypbind
# yum install yp-tools
# yum install portmap
# yum install make

1. Edit “/etc/sysconfig/network” file and add a new line after third line “NISDOMAIN=server_name”
Ex:-
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=server.linux.com
NISDOMAIN=linux.com

2. Configure Domain name:
# domainname linux.com             (For temporary)
# vi /etc/domainname                    (For permanent)
linux.com
Esc:wq

3. Entry in Securenets file
# vi /var/yp/securenets
255.255.255.255      127.0.0.1
255.255.255.0           192.168.1.0
Esc:wq

Note: Restart the PC for configures this Domain, after restart the PC run below commands.
# service portmap restart
# chkconfig --list portmap
# chkconfig portmap on
# service ypserv restart
# chkconfig --list ypserv
# chkconfig ypserv on
            Edit “/var/yp/Makefile”
# vi /var/yp/Makefile                       (For open the Makefile)
Assign line no through :se nu then go to line no. 109 through :109, In this line after the netid get all to the new line and set it as comment with # sign.

109 all:  passwd group hosts rpc services netid
110         # protocols mail \

Making NIS Master Server:
# usr/lib/yp/ypinit –m
            Ctrl+D

# service portmap restart
# service ypserv restart
# service yppasswdd restart

            Verify the services through...
# ps -ef | grep yp

            Show the NIS maps:
# ypwhich -m


Client Side Configuration:
1. Install the following packages on the client end:
            ypbind
            yp-tools
            authconfig
            authconfig-gtk
            portmap

2. Connect with NIS Domain Server
# system-config-authentication
            Enable NIS Domain
                        NIS Domain  linux.com
                        NIS Server     server.linux.com
            Check on authentication tab and see the default settings. Also check option tab for default settings.

3. For Testing:
# ypwhich
            server.linux.com                   (The name of NIS Server will appear)
# ypcat passwd                              (Show all NIS user database)

No comments:

Post a Comment

Boot to UEFI Mode or legacy BIOS mode

Boot to UEFI Mode or legacy BIOS mode Choose UEFI or legacy BIOS modes while installing Windows. After Windows is installed, if you nee...