C2 db & directory ownership

From: Chad Price <cprice_at_molbio.unmc.edu>
Date: Mon, 20 Dec 1999 17:30:47 -0600

A while back, I screwed up and created accounts with the wrong names (left
out the quotes around the gecos info and wound up with capitalized account
names and so on). Edauth only retired accounts and I wanted to start from
scratch again. To fix that, I used authconv to convert the password data
back to the files format, edited it and removed the unwanted accounts, and
then removed the auth.db file. Then recreated the auth.db files with
authconv. So far so good. Old history seems to be gone, account names are
no longer retired, they are gone.

Remaining problem: the account names orignally created seem to retain
ownership of the directories and appear when (for example) sudo tries to
allow someone privleges.

Example:
(1) created a user called Babcook with home directory dbabcook and owned by
Babcook. This is wrong, and so
(2) used authconv and removed auth.db file after using edauth to
remove/retire the account. Removed entry from passwd file.
(3) removed home directory.
(4) recreated account with same uid as original. And reconverted to C2 so
that auth.db is the definitive password database again and is a completely
new file with no prior history of the Babcook account.

At this point, auth.db has no record of "Babcook" as a valid user name, nor
does the password file in /etc.

Problem: the directory is shown by ls as being owned by Babcook. When the
user logs in and attempts to use sudo, sudo forbids it, saying "Babcook not
in /etc/sudoers file". OK. Add Babcook to sudoers file (but user is logged
in using dbabcook..) Now error is that the password provided to sudo is wrong.

It appears that Babcook was not removed from the system by removing the
passwd and auth.db entries.

Where else could it be? Or do I simply need to reboot the system? (It's
been 80 days..) Rebooting is not mentioned in the man pages in connection
with edauth or convauth.


Chad

Chad Price
Systems Manager, Genetic Sequence Analysis Facility
University of Nebraska Medical Center
986495 Nebraska Medical Center
Omaha, NE 68506-6495
cprice_at_molbio.unmc.edu
(402) 559-9527
(402) 559-4077 (FAX)
Received on Mon Dec 20 1999 - 23:33:31 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT