Sunday, 22 February 2009

Nis Server Configuration for RHEL-5

Server side-: Install following package.
# yum install Ypserv
# yum install Ypbind
# yum install tools

# chkconfig ypserv on

# chkconfig yppasswdd on

# chkconfig ypxfrd on

# /etc/init.d /portmap restart

# chkconfig portmap on

Open file vim /etc/sysconfig/network

make this entry in file.

NISDOMAIN= ABC    "abc is a domian name"

save & exit file.

# service ypserv restart

# service yppasswd start

Make new user

adduser "username"

passwd "enter password"

enter new password “typpe new password”

retype new password “retype new password”

*remote home directory-:

# mkdir /abc

#chmod 777 /abc

#creaton of the user #

useradd -d /abc/test1 test1

passwd test1

useradd -d /abc/test2 test2

passwd test2

* type following command-:

# /usr/lib/yp/ypinit -m

 It will ask u next host to add#

Press CTR+D#

you will get below message #

The current list of NIS servers looks like this:

Is this correct? [y/n: y]


#Press Y#

# Install nfs service#

chkconfig nfs on

chkconfig portmap on

chkconfig nfslock on

vim /etc/exports

 make the foolowing entry to share abc folder

/abc    *.,sync)

vim /etc/sysconfig/nfs

#make following entries in this file#





/etc/init.d/nfs restart

/etc/init.d/nfslock restart

/etc/init.d/portmap restart

exportfs -avf

show the exported folder

Client Side-:

now configure auto.misc and auto.master on client machine

make following entry in auto.misc

* -rw,soft,intr serveripaddress:/abc/&

make following entry in auto.master

/testhome etc/auto.misc

/etc/init.d/autofs restart

now run authconfig-tui

select nis domain

put ABC in domain fiels

server's ipaddress in server field

now login with user test1 from client machine in cmd prompt



  1. cool Stuffs, thanks for your help.

  2. sweet and simple.... Great job

  3. Thanks brother.....

  4. i m unable to log in to the user as it "test1"
    with your configuration

  5. pularaju( May 2011 at 04:14

    its really a good document to configure RHEL 5,
    thanks for posting such a good document.

  6. nice notes boss.... i need ur help....i want VSFTPD Install&Configuration Detail can u send me ....

  7. nice notes.. i need ur help boss....i want VSFTPD configuration on linuc rhel5..can u send this mail id (

  8. It is easy process for install FTP server on linux

    #yum install vsftpd*
    Download and install particular RPM

    #/etc/init.d/vsftpd restart
    # chkconfig vsftpd on

    Allow FTP port in iptables
    Iptables -I INPUT -s -p tcp --dport 21 -j ACCEPT

    Iptables -I INPUT -s -p udp --dport 21 -j ACCEPT

    You can change as your requirement on vsftpd.conf file

    # vim /etc/vsftpd/vsftpd.conf