Networking Forums

Networking Forums > Computer Networking > Linux Networking > NIS user account woes

Reply
Thread Tools Display Modes

NIS user account woes

 
 
brettg
Guest
Posts: n/a

 
      01-17-2004, 10:12 PM
Hey all.

Just mucking aboot with my home net, strictly for educational purposes
of course :-)

(note: if you don't want to read my somewhat rambling account of
events here, skip right to the end of the article, the nub of the
problem is to be found there)

Network is as follows;

Linux firewall/server running;


RH9 as a Samba PDC,
/ \
Win XP client M'drake 9.2 client


So, this is all working fine. The only loose end is that I need to have
seperate local accounts on the two linux boxes, which is somewhat
inelegant. Accordingly, I decide to stick NIS on the server in order to
make myself a more homogoneous network and learn something new in the
process.

A day later and NIS is all set up and working fine, including mounting
the /home directory on the server via NFS to /home on the M'drake box
and then logging in server users who have no local account on the
Mandrake PC.

Kewl.

The only problem is that it only works for user accounts that have been
created (useradd uname) _after_ NIS was installed. My primary user
account "brettg" shows up in the Gnome list of users at the logon screen
of the M'drake box but if I try to logon I get errors relating to the
accounts lack of write access to it's home directory and I am unable to
complete the login process.

As mentioned B4, newly created users work fine.

No problem thought I, I will just delete my account and then recreate it.

The problem:

After deleting the account, I cannot create a new one (using the same
uid), I get a "user already exists" response. If I stop the NIS daemons
first (/etc/init.d/ypbind stop, /etc/init.d/ypserv stop) I can userdel
and useradd 'till the proverbial cows come home.

So I did a useradd brettg and restarted the yp daemons, followed by
userdel -r brettg. There was no error returned.

I restarted the x-server on the M'drake client and for some reason my
"brettg" account is still listed at the login screen. I restart the
M'drake PC completly (all those years of Windows exposure aint easy to
shake free :-) with the same result.

The "brettg" user account on the server has been removed, yet NIS
continues to believe it exists.

With th yp daemons still running, if I do useradd brettg I get "user
already exists", although there is no entry for this users in any of the
password or group files (including the shadows)

So my question is, how do I either;

a) flush and rebuild the NIS database using the appropriate tool or

b) edit something(s) manually to make all references to this user
account disappear therefore allowing me to create a new one?

Half a day of Google searching and fiddling about has turned up zilch so
now I turn to asking directly.

Thanks for your time and patience all.

 
Reply With Quote
 
 
 
 
brettg
Guest
Posts: n/a

 
      01-17-2004, 11:26 PM
Doh!

It's funny what a good nights sleep can do;

/usr/lib/yp/ypinit -m

and all is fine!

<slams head on desk repeatedly>


brettg wrote:
> Hey all.
>
> Just mucking aboot with my home net, strictly for educational purposes
> of course :-)
>
> (note: if you don't want to read my somewhat rambling account of
> events here, skip right to the end of the article, the nub of the
> problem is to be found there)
>
> Network is as follows;
>
> Linux firewall/server running;
>
>
> RH9 as a Samba PDC,
> / \
> Win XP client M'drake 9.2 client
>
>
> So, this is all working fine. The only loose end is that I need to have
> seperate local accounts on the two linux boxes, which is somewhat
> inelegant. Accordingly, I decide to stick NIS on the server in order to
> make myself a more homogoneous network and learn something new in the
> process.
>
> A day later and NIS is all set up and working fine, including mounting
> the /home directory on the server via NFS to /home on the M'drake box
> and then logging in server users who have no local account on the
> Mandrake PC.
>
> Kewl.
>
> The only problem is that it only works for user accounts that have been
> created (useradd uname) _after_ NIS was installed. My primary user
> account "brettg" shows up in the Gnome list of users at the logon screen
> of the M'drake box but if I try to logon I get errors relating to the
> accounts lack of write access to it's home directory and I am unable to
> complete the login process.
>
> As mentioned B4, newly created users work fine.
>
> No problem thought I, I will just delete my account and then recreate it.
>
> The problem:
>
> After deleting the account, I cannot create a new one (using the same
> uid), I get a "user already exists" response. If I stop the NIS daemons
> first (/etc/init.d/ypbind stop, /etc/init.d/ypserv stop) I can userdel
> and useradd 'till the proverbial cows come home.
>
> So I did a useradd brettg and restarted the yp daemons, followed by
> userdel -r brettg. There was no error returned.
>
> I restarted the x-server on the M'drake client and for some reason my
> "brettg" account is still listed at the login screen. I restart the
> M'drake PC completly (all those years of Windows exposure aint easy to
> shake free :-) with the same result.
>
> The "brettg" user account on the server has been removed, yet NIS
> continues to believe it exists.
>
> With th yp daemons still running, if I do useradd brettg I get "user
> already exists", although there is no entry for this users in any of the
> password or group files (including the shadows)
>
> So my question is, how do I either;
>
> a) flush and rebuild the NIS database using the appropriate tool or
>
> b) edit something(s) manually to make all references to this user
> account disappear therefore allowing me to create a new one?
>
> Half a day of Google searching and fiddling about has turned up zilch so
> now I turn to asking directly.
>
> Thanks for your time and patience all.
>


 
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
Re: User account issue... Jaimie Vandenbergh Home Networking 0 12-19-2009 09:34 AM
Cancelling Tiscali account woes Zardoz Broadband 3 02-05-2005 01:07 AM
User Account Administration with XP pro greyhwk Windows Networking 2 12-16-2003 11:48 AM
User Account Has Expired John Windows Networking 1 11-14-2003 05:06 PM



1 2 3 4 5 6 7 8 9 10 11