Networking Forums

Networking Forums > Computer Networking > Linux Networking > Delete user account from passwd and NIS

Reply
Thread Tools Display Modes

Delete user account from passwd and NIS

 
 
kevindu28@yahoo.com
Guest
Posts: n/a

 
      08-09-2005, 02:30 AM
I was wondering if there was a quicker method to remove a user account
from the /etc/passwd file and NIS yppasswd database. What I execute is
as follows:

% userdel -r username
% cd /var/yp
% make
% /etc/init.d/ypserv restart (I had to do this)
% grep username /etc/passwd
% ypcat passwd | grep username

Without the restart of the ypserv service,the account would still be
display when I did the ypcat.

Version of ypserv I'm using on a RH9.x server: ypserv-2.8-0.9E

I also have to restart the service after I add a new user.

 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      08-09-2005, 03:32 AM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com

> % /etc/init.d/ypserv restart (I had to do this)


man ypinit
 
Reply With Quote
 
kevindu28@yahoo.com
Guest
Posts: n/a

 
      08-09-2005, 04:11 AM
Isn't executing make in /var/yp the same thing? Which I'm doing in
separate steps.

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      08-09-2005, 04:13 AM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com

> Isn't executing make in /var/yp the same thing? Which I'm doing in
> separate steps.


It *might* be, but apparently isn't. Did you examine the Makefile?
 
Reply With Quote
 
kevindu28@yahoo.com
Guest
Posts: n/a

 
      08-09-2005, 04:19 AM
Ah! I looked at my log after running ypinit and noticed it restarted
the service also. Good.

 
Reply With Quote
 
Mauricio Tavares
Guest
Posts: n/a

 
      08-09-2005, 12:11 PM
(E-Mail Removed) wrote:
> Ah! I looked at my log after running ypinit and noticed it restarted
> the service also. Good.
>

Good, otherwise I would suggest you to flush the maps in the clients.
Sometimes I have the problem I change the maps in the master server but
some clients do not get it, forcing me to flush them in those clients.

--
Mauricio raub-kudria-com
(if you need to email me, use this address =)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: User account issue... Bernard Peek Home Networking 1 12-19-2009 08:00 PM
Delete cached local copy of mandatory profile and non roaming domain user profiles ? Alex Windows Networking 8 11-07-2008 02:19 PM
user can't ypcat passwd, but root can ssmethurst@tiscali.co.uk Linux Networking 0 10-02-2006 12:12 AM
network user add & delete mshort Broadband Hardware 0 07-30-2004 10:36 PM
User Account Administration with XP pro greyhwk Windows Networking 2 12-16-2003 11:48 AM



1 2 3 4 5 6 7 8 9 10 11