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.
|