From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d7acc6670e90d16a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-20 12:59:07 PST From: "Ann Majeske" Newsgroups: comp.unix.tru64 References: <505df60a.0308121527.36468d50@posting.google.com> <3f3a732c@usenet01.boi.hp.com> <505df60a.0308142315.ec88e2d@posting.google.com> <505df60a.0308191859.4046e3e0@posting.google.com> Subject: Re: User account management with enhanced security Date: Wed, 20 Aug 2003 15:59:04 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: xphp-majeskea.americas.cpqcorp.net Message-ID: <3f43d946$1@usenet01.boi.hp.com> X-Trace: usenet01.boi.hp.com 1061411142 16.141.136.114 (20 Aug 2003 14:25:42 -0700) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news-out.newsfeeds.com!propagator2-maxim!news-in.superfeed.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!usenet01.boi.hp.com!not-for-mail Xref: archiver1.google.com comp.unix.tru64:10713 "Nick" wrote in message news:505df60a.0308191859.4046e3e0@posting.google.com... > Still having problems with this one... > I'm running Tru64 Unix version 4.0F ... > Here's the strange part... After a while (usually not less than about > 10 minutes), the users entry in /etc/passwd disappears. I don't know > what causes this and would appreciate suggestions. > After this has happened, I can still view the user entry in auth.db, > and the user can still log in, and use 'passwd' to change their > password. ... Hi Nick, It's true that there must be a corresponding passwd database entry for each auth.db entry for the account to be considered valid. But, most likely you are using the hashed password database on your system. This consists of the /etc/passwd.dir and /etc/passwd.pag files. See "man mkpasswd.8" for more details on the hashed password database. As long as the hashed password database has not been updated, your system will still see the passwd database entries as if they were still in the /etc/passwd file. So, if you see an entry disappear from the /etc/passwd file and then run mkpasswd or any tool that runs mkpasswd, then the user should not be able to log in anymore. Why is this so important in your case? It means that most likely whatever is overwriting/editing your /etc/passwd file is not following the appropriate protocols for modifications to the /etc/passwd file, including honoring the /etc/ptmp lock and running mkpasswd after updating the /etc/passwd file. This pretty much rules out someone else (or somewhere else in your scripts) using the system tools (e.g. dxaccounts, vipw, useradd, usermod) to do a simultaneous modification to the /etc/passwd file wiping out the account that you just added. It is still possible that one of the system tools for V4.0F with whatever patch level you have is missing the proper locking and updating in some critical (at least to you!) path, but it isn't the first place I'd look. This also means that auditing auth_event isn't going to find the culprit either. If it happens every time you add a user, the first place I'd look for some evidence of editing and/or overwriting the /etc/passwd file would be your own scripts that you are using to add users (assuming that you're using scripts and not using useradd directly). The next place to look would be any regular cron jobs on the system or scripts that might be run by another administrator. Are you running any sort of remote distribution to keep files the same between systems? Does anyone else have access to the root account on your system? Ann