[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug or feature? rmuser leaves /etc/ptmp file



>   I can't duplicate this, though. rmuser doesn't leave any /etc/ptmp file
> for me (on -current) even with nonexistent users.

Interesting.
I'm using a fresh install from the 3.1 CDs.
In as "root" user for the first time, in the "sh" shell.

The exact sequence of events was:

1. Install OpenBSD 3.1 from CDs.
2. Reboot. Go in as root.  Type "sh" for sh shell.
3. Remove user "www".  (rmuser.... "www".  "y")
4. Fall asleep.  Wake up.
5. Use "adduser" to add 3 real users.  Successful.
6. Forget that I removed "www" last night before bed.
7. rmuser:  "www".  Tells me no such user.
8. Now /etc/ptmp is there, "adduser" is locked.
9. If I kill /etc/ptmp I can use adduser/rmuser again.
10. All is well, unless I try (for bug-testing sake) to
   do an "rmuser" for a different user that doesn't exist.
   It does the /etc/ptmp thing all over again.

I hope this helps.