How to fix NIS+ server breaks with Unable to Authenticate NIS+ server

How to fix NIS+ server breaks with Unable to Authenticate NIS+ server


Kill and restart rpc.nisd at security level 0:

ps -ef | grep rpc.nisd
kill <pid>
/usr/sbin/rpc.nisd -r -S 0

Use keylogout to remove roots key:

keylogout -f

Add root's key and push it into the directories:

nisaddcred des
ps -ef | grep keyserv
kill <pid>
nisupdkeys `nisdefaults -d`
nisupdkeys org_dir.`nisdefaults -d`
nisupdkeys groups_dir.`nisdefaults -d`
/usr/sbin/keyserv

Make sure the changes have been propagate:

/usr/lib/nis/nisping `nisdefaults -d`
/usr/lib/nis/nisping org_dir.`nisdefaults -d`
/usr/lib/nis/nisping groups_dir.`nisdefaults -d`

Apply /usr/lib/nis/nisping to any other directories that you may have
created.

Kill & restart NIS at security level 2:

ps -ef | grep rpc.nisd
kill <pid>
/usr/sbin/rpc.nisd -S 2



Home
FAQ