How to do NIS centralized login

View previous topic View next topic Go down

How to do NIS centralized login

Post  Admin on Mon Nov 30, 2009 3:34 am

###NIS USER CONFIGURATION###
#rpm -qa yp*
#yum install yp*
#useradd craig
#passwd craig
#useradd kevin
#passwd kevin
#mkdir -p /nhome/craig
#mkdir -p /nhome/kevin
#usermod -d /nhome/craig/ craig
#usermod -d /nhome/kevin/ kevin
#chown craig.craig /nhome/craig
#chown kevin.kevin /nhome/kevin
#vi /etc/passwd
#cd /etc/skel/
#ll -a
#cp .bash* /nhome/craig/
#cp .bash* /nhome/kevin/
#cd
#ll -a /nhome/craig/
#ll -a /nhome/kevin/

###Configuring NFS SERVER###
#vi /etc/exports
---> /nhome *(rw,sync,no_root_squash)
#service portmap restart
#service nfs restart
#exportfs -t
#exportfs -v
#exportfs -a

###NIS SERVER CONFIGURATION###
#vi /var/yp/Makefile
---> line:109
all:passwd group hosts shadow
# rpc services netid
# netsrp shadow
#vi /etc/sysconfig/network
HOSTNAME=server.example.com
NISDOMAIN=server.example.com
#domainname
#domainname server.example.com
#service ypserv restart
#cd /etc/skel/
/usr/lib/yp/ypinit -m
--> next host add: server.example.com
next host add: example.com
<ctrl+D>
#ls /var/yp/
op: binding,server.example.com,Makefile
#service ypserv restart
#ifconfig
#service network restart
#showmount -e
#tailf /var/log/messages
###NIS CLIENT CONFIGURATION###

#rpm -qa ypbind*
#rpm -qa autofs*
#yum install ypbind* autofs*
#vim /etc/auto.master
---> /nhome /etc/auto.nhome
#vim /etc/auto.nhome
--->* -rw,soft,intr 192.168.1.90:/nhome/&
#service autofs restart
#authconfig-tui
(*) NIS -->> NEXT
DOMAINNAME:server.example.com
SERVER: 192.168.1.90
#service autofs restart
# su - craig
#showmount -e 192.168.1.90
#touch
#df
#quota
### Permanent entries
/etc/fstab
192.168.1.90:/nhome/
avatar
Admin
Admin

Posts : 32
Join date : 2009-09-13
Age : 31
Location : Chennai

View user profile http://linux.nsguru.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum