NIS SERVER CONFIGURATION
INSTALL THE PACKAGES NEEDED USING YUM INSTALLER
yum -y install ypserv
yum -y install portmap
MODIFY THE CONFIGURATION FILE /etc/sysconfig/network As Follows
vim /etc/sysconfig/network
Add a line as follows
NISDOMAIN=RHCE
This will take effect the next time you reboot your machine.
RUN THE FOLLOWING COMMAND TO SET THE NISDOMAIN NAME
nisdomainname RHCE
START THE SERVICES NEEDED FOR CONFIGURATION AND CONFIGURE IT TO START ON
BOOT:
service portmap start/restart/reload
service ypserv start/restart/reload
chkconfig portmap on
chkconfig ypserv on
CREATE A REMOTE HOME DIRECTORY
mkdir /rhome
ADD USERS SUCH THAT THEIR HOME DIRECTORIES ARE IN /rhome
useradd -d /rhome/
PROVIDE PASSWD FOR THE USERS
passwd
EXPORT THE REMOTE HOME DIRECTORY
vi /etc/exports
/rhome *(rw,sync)
exportfs -r
service portmap restart
service nfs restart
chkconfig portmap on
chkconfig nfs on
exportfs -v
GENERARE THE NIS DATABASE BY RUNNING THE FOLLOWING COMMAND, AND WATCH IT'S
OUTPUT FOR ANY ERRORS MESSAGES.
/usr/lib/yp/ypinit -m
Press Ctrl+D
type "y" then press ENTER
START THE YPPASSWDD SERVICE TO UPDATE PASSWORDS, AND ENABLE AFTER THE
REBOOT
service yppasswdd start/restart/reload
chkconfig yppasswdd on
NIS CLIENT CONFIGURATION
INSTALL THE FOLLOWING PACKAGES USING YUM INSTALLER
yum install -y portmap
yum install -y ypbind
yum install -y yp-tools
yum install -y authconfig
yum install -y authconfig-gtk
CONFIGURATION:
system-config-authentication (graphical)
or
authconfig-tui (text)
ENABLE THE FOLLOWING
Enable NIS support
then Enter the following
NIS DOMAIN RHCE
NIS SERVER 192.168.0.X or Domainname
ypbind should now start up successfully
EDIT THE /etc/auto.master FILE
vim /etc/auto.master
/rhome/
/etc/auto.misc --timeout=60
This line specifies that /etc/auto.misc defines mount points in /rhome/ managed by
the automounter. When not in use for more than 60 seconds, filesystems mounted on those mount
points are automatically unmounted.
CREATE AND EDIT /etc/auto.misc
vim /etc/auto.misc
-fstype=nfs 192.168.0.X:/rhome/
where X is your NIS server IP Address.
START AND ENABLE THE SERVICES AFTER REBOOT
service autofs start/restart/reload
chkconfig autofs on
service ypbind start/restart/reload
chkconfig ypbind on
NISUSER login should be successfully display the home directory of the NISUSER
INSTALL THE PACKAGES NEEDED USING YUM INSTALLER
yum -y install ypserv
yum -y install portmap
MODIFY THE CONFIGURATION FILE /etc/sysconfig/network As Follows
vim /etc/sysconfig/network
Add a line as follows
NISDOMAIN=RHCE
This will take effect the next time you reboot your machine.
RUN THE FOLLOWING COMMAND TO SET THE NISDOMAIN NAME
nisdomainname RHCE
START THE SERVICES NEEDED FOR CONFIGURATION AND CONFIGURE IT TO START ON
BOOT:
service portmap start/restart/reload
service ypserv start/restart/reload
chkconfig portmap on
chkconfig ypserv on
CREATE A REMOTE HOME DIRECTORY
mkdir /rhome
ADD USERS SUCH THAT THEIR HOME DIRECTORIES ARE IN /rhome
useradd -d /rhome/
PROVIDE PASSWD FOR THE USERS
passwd
EXPORT THE REMOTE HOME DIRECTORY
vi /etc/exports
/rhome *(rw,sync)
exportfs -r
service portmap restart
service nfs restart
chkconfig portmap on
chkconfig nfs on
exportfs -v
GENERARE THE NIS DATABASE BY RUNNING THE FOLLOWING COMMAND, AND WATCH IT'S
OUTPUT FOR ANY ERRORS MESSAGES.
/usr/lib/yp/ypinit -m
Press Ctrl+D
type "y" then press ENTER
START THE YPPASSWDD SERVICE TO UPDATE PASSWORDS, AND ENABLE AFTER THE
REBOOT
service yppasswdd start/restart/reload
chkconfig yppasswdd on
NIS CLIENT CONFIGURATION
INSTALL THE FOLLOWING PACKAGES USING YUM INSTALLER
yum install -y portmap
yum install -y ypbind
yum install -y yp-tools
yum install -y authconfig
yum install -y authconfig-gtk
CONFIGURATION:
system-config-authentication (graphical)
or
authconfig-tui (text)
ENABLE THE FOLLOWING
Enable NIS support
then Enter the following
NIS DOMAIN RHCE
NIS SERVER 192.168.0.X or Domainname
ypbind should now start up successfully
EDIT THE /etc/auto.master FILE
vim /etc/auto.master
/rhome/
/etc/auto.misc --timeout=60
This line specifies that /etc/auto.misc defines mount points in /rhome/
the automounter. When not in use for more than 60 seconds, filesystems mounted on those mount
points are automatically unmounted.
CREATE AND EDIT /etc/auto.misc
vim /etc/auto.misc
where X is your NIS server IP Address.
START AND ENABLE THE SERVICES AFTER REBOOT
service autofs start/restart/reload
chkconfig autofs on
service ypbind start/restart/reload
chkconfig ypbind on
NISUSER login should be successfully display the home directory of the NISUSER
No comments:
Post a Comment