Remove NIS user under RHEL

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Remove NIS user under RHEL
# 1  
Old 07-31-2012
Remove NIS user under RHEL

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

Code:
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!
# 2  
Old 08-01-2012
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Deleting NIS user Solaris 8

ypcat passwd | grep "user" - shows the user userdel "user" says "user does not exist" What am I doing wrong? (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Red Hat

RHEL 5.5: how to remove a clustered VG?

Hi all, I have a 2 node rhel 5.5 cluster (2 server and 1 quorum disk). I created 2 cluster resources using Luci web console, they are 2 Volume Groups. I want to remove that cluster and shutdown node 2, but I don't want to loose data on Volume Groups clustered. How can I remove that... (0 Replies)
Discussion started by: peppeunz
0 Replies

3. UNIX for Advanced & Expert Users

How to remove the LUN in RHEL?

Hi, How to remove the allocate SAN Lun on the Linux Server. I am using rhel 5.8. I have assigned a LUN to the existing Volume group. For eg: I have allocated a LUN with 20GB to the existing volume group(test123). Now, how can I take back the allocated lun without any issues. (1 Reply)
Discussion started by: gsiva
1 Replies

4. Solaris

create user in NIS+

i want create user in NIS+ with root previligation. Someone please provide full steps. (1 Reply)
Discussion started by: Navkreddy
1 Replies

5. Solaris

NIS user creation

Hi can anyone help me how to create a NIS user by editing the files like Passwd,group, Netgroup,auto.home and Aliases using the "enis" utility? Please do the needful................................ (4 Replies)
Discussion started by: Revathi@1
4 Replies

6. Solaris

nis user

my qustion is, nis is centralised server.how to login nis user in client system in console (CDE)login (2 Replies)
Discussion started by: tirupathi
2 Replies

7. Red Hat

Add/Remove package in RHEL 5 !

Friends , I cannot upgrade or add any package in RHEL 5 using 'package manager' GUI tools . When I run the 'package manager' tool then in BROWSE tab , it shows nothing . I try it inserting the RHEL5 DVD in the DVD-Rom . But the condition is the same . Would anybody plz tell me , How can I... (4 Replies)
Discussion started by: shipon_97
4 Replies

8. Shell Programming and Scripting

NIS User UID Change

Hi All, I need to change the UID numbers of many NIS users, is there any command to modify the UID in NIS maps ? ( like usermod) so that their file permissions will be same even with their new UID. If not, how to check all the files owned by particular user in a computer and change the... (1 Reply)
Discussion started by: RAA
1 Replies

9. UNIX for Dummies Questions & Answers

NIS + adding a new user

I'm setting up NIS+ on Solaris 8 for Intel. None of the books I have explain how to add a new user in the NIS+ envoirnment. Can somebody explain this and are there any url's to get more info. I have populated the nis tables and can do an niscat of the passwd table. There is an nisgrpadd command... (2 Replies)
Discussion started by: txpjl
2 Replies
Login or Register to Ask a Question