1826501 Members
1873 Online
109692 Solutions
New Discussion

Removing users on NIS.

 
brian_31
Super Advisor

Removing users on NIS.

I am trying to remove a user on a NIS master. when i try userdel it says the login does not exist. ypcat passwd shows the login. how do i remove this user?

Thanks

brian
1 REPLY 1
VK2COT
Honored Contributor

Re: Removing users on NIS.

Hello,

userdel(1) command is aware of NIS user and group entries. Only local users can be
deleted or modified with this command.

a) Log in as root to the NIS master server.

b) Make your changes to the source file for
the NIS map. If you want to change the NIS
passwd map, make your changes to the
/etc/passwd file or use userdel(1) command...

c) Issue the following commands to generate
the map and push it to the slave servers:

cd /var/yp
/usr/ccs/bin/make passwd

If your slave servers are not up and running
yet, run the make command with the NOPUSH
flag set to 1:

cd /var/yp
/usr/ccs/bin/make NOPUSH=1 passwd

Cheers,

VK2COT
VK2COT - Dusan Baljevic