NIS-SERVER
===================
nis - Network Information Service
port no -
package -yp
Deamon -ypserv
--------------------------
*Install the 'yp' package
#yum install yp* -y
*Create the user in different home directory
#mkdir /NIS
*Add the user for NIS server
#adduser -d /NIS/nis1 nis1
#adduser -d /NIS/nis2 nis2
#adduser -d /NIS/nis3 nis3
*Give the password to all the users
#passwd nis1
XXXX
*Give the full permission to the nis home dir
#chmod -R 777 /NIS
*Share the home nis home dir in NFS
#vim /etc/export
/NIS *(rw,syn)
:wq (save the file)
#service nfs restart
#service ypserv restart
*Give the NIS domain name
#vim /etc/sysconfig/network
NISDOMAIN = nis [name can be anything ]
:wq [save the file]
#nisdomainname nis
*creat the data base fo NIS server
#/usr/lib/yp/ypinit -m
pres Ctrl + D to save the data base
press y for yes and Enter the key
=====================================
FROM THE CLIENT END NOW
*first configure the Authentication
#authconfig-tui
[*] NIS next
DOMAIN NAME nis
SEVER 192.168.0.1
[OK]
* Configur the "/etc/auto.master " and "/etc/auto.misc "
#vim /etc/auto.misc
/misc /etc/auto.misc [copy this line and past below of this ]
/NIS /etc/auto.misc [NIS - is the home dir of the uers ]
:wq save the file
#vim /etc/auto.misc
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom [copy this line and past below ]
cd -fstype=nfs 192.168.0.1:/NIS/&
:wq save the file
( The "&" symbol is dinotes all the users , if we want the only and one user or two user and loging
remotly than of the place of "&" we can write the particular users name as - nis1,nis2]
#service autofs restart
[NOW WE CAN LOGING REMOTLY FROM ANY SYSTEM OF DOMAIN ]
===================
nis - Network Information Service
port no -
package -yp
Deamon -ypserv
--------------------------
*Install the 'yp' package
#yum install yp* -y
*Create the user in different home directory
#mkdir /NIS
*Add the user for NIS server
#adduser -d /NIS/nis1 nis1
#adduser -d /NIS/nis2 nis2
#adduser -d /NIS/nis3 nis3
*Give the password to all the users
#passwd nis1
XXXX
*Give the full permission to the nis home dir
#chmod -R 777 /NIS
*Share the home nis home dir in NFS
#vim /etc/export
/NIS *(rw,syn)
:wq (save the file)
#service nfs restart
#service ypserv restart
*Give the NIS domain name
#vim /etc/sysconfig/network
NISDOMAIN = nis [name can be anything ]
:wq [save the file]
#nisdomainname nis
*creat the data base fo NIS server
#/usr/lib/yp/ypinit -m
pres Ctrl + D to save the data base
press y for yes and Enter the key
=====================================
FROM THE CLIENT END NOW
*first configure the Authentication
#authconfig-tui
[*] NIS next
DOMAIN NAME nis
SEVER 192.168.0.1
[OK]
* Configur the "/etc/auto.master " and "/etc/auto.misc "
#vim /etc/auto.misc
/misc /etc/auto.misc [copy this line and past below of this ]
/NIS /etc/auto.misc [NIS - is the home dir of the uers ]
:wq save the file
#vim /etc/auto.misc
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom [copy this line and past below ]
cd -fstype=nfs 192.168.0.1:/NIS/&
:wq save the file
( The "&" symbol is dinotes all the users , if we want the only and one user or two user and loging
remotly than of the place of "&" we can write the particular users name as - nis1,nis2]
#service autofs restart
[NOW WE CAN LOGING REMOTLY FROM ANY SYSTEM OF DOMAIN ]
No comments:
Post a Comment