Remove NIS user under RHEL

Hi, I can't delete an NIS user. Does it sound too simple for you? :frowning: Here is the result:

nis_server# ypcat passwd | grep heisgone
heisgone:xxxxxx:1000:200:He is gone:/home/heisgone:/usr/bin/ksh

nis_server# userdel heisgone
userdel: error deleting password entry
userdel: error deleting shadow password entry

nis_server# grep heisgone /etc/passwd
nis_server#

It looks like to me that the user was removed from /etc/passwd and shadow, but still in the NIS database. How can I solve the issue?

Believe me, I usually google a lot trying to find the solutions before posting here. Thank you in advance!

You will have to remove the user from the source file that is used to make the NIS passwd maps and rebuild the maps. This file should be located on the NIS master system.