Help

Ravi sunkoji ravigss at mihy.mot.com
Wed Dec 18 15:12:51 EST 2002


Hi ALL,
   I am trying to configure NIS + client in Linux 7.2. But i am getting
following error when i try to add 
./nisinit -cH xxx
Using x.x.x.x as NIS+ server ...
x.x.com.: Name not served by this server

And ofcource when i run /etc/init.d/nisplus start....i am getting following
error.

/etc/init.d/nisplus start
Starting NIS+ services: execvp: No such file or directory
                                                           [FAILED]
steps what i have done is
1)compiled glibc-2.3.tar.gz
2)compiled glibc-linuxthreads-2.3.tar.gz
3)Compiled glibc-crypt-2.1.3.tar.gz
4)nis-utils-1.4.1.tar.gz
5)added my linux client in NIS+ master (SUN SOLARIS)
6)copied NIS_COLD_START to /var/nis
7)rename redhat.rc to /etc/init.d/nisplus

Here is my /etc/init.d/nisplus file.......
#! /bin/sh
#
# nis.init:     Start/Stop daemons for NIS+ client/server
#
# Author:       Thorsten Kukuk, <kukuk at suse.de>
#
# Version:      $Id: redhat.rc,v 1.2 1999/09/25 18:13:11 kukuk Exp $
#
# chkconfig: 345 51 49
# description: Starting the daemons for NIS+ and secure RPC

# Source function library.
. /etc/rc.d/init.d/functions

# Get config.
. /etc/sysconfig/network

# Run rpc.nisd in YP compat mode
#EMULYP=-Y

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
 exit 0
fi

case "$1" in
  start)
  echo -n "Starting NIS+ services: "
 daemon keyserv
 if [ -f /var/nis/NIS_COLD_START -a -f /var/nisplus/sbin/nis_cachemgr ]
 then
     daemon nis_cachemgr
 fi
 if [ -d /var/nis/data -a -f /var/nisplus/sbin/rpc.nisd ]
 then
    daemon rpc.nisd $EMULYP
    daemon rpc.nispasswdd
 fi
 echo
 touch /var/lock/subsys/nisplus
 ;;
  stop)
 echo -n "Stopping NIS+ services: "
 killproc keyserv
 if [ -f /var/nis/NIS_COLD_START -a -f /var/nisplus/sbin/nis_cachemgr ]
 then
     killproc nis_cachemgr
 fi
 if [ -d /var/nis/data -a -f /var/nisplus/sbin/rpc.nisd ]
 then
    killproc rpc.nisd
    killproc rpc.nispasswdd
 fi
 echo
 rm -f /var/lock/subsys/nisplus
 ;;
  status)
        status keyserv
 if [ -d /var/nis/NIS_COLD_START -a -f /var/nisplus/sbin/nis_cachemgr ]
 then
     status nis_cachemgr
 fi
 if [ -d /var/nis/data -a -f /var/nisplus/sbin/rpc.nisd ]
 then
    status rpc.nisd
    status rpc.nispasswdd
 fi
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
 echo "Usage: nisplus {start|stop|status|restart}"
 exit 1
esac

exit 0






More information about the linux-nisplus mailing list