From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tom Linden Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: admin lock on login Date: Mon, 25 Aug 2003 08:53:17 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: References: <200308251517.LAA0000000822@doctor.zk3.dec.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1061827141 32205 80.91.224.253 (25 Aug 2003 15:59:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2003 15:59:01 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Aug 25 17:58:58 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19rJkA-0003Hx-00 for ; Mon, 25 Aug 2003 17:58:58 +0200 Original-Received: (qmail 28731 invoked by uid 5); 25 Aug 2003 15:58:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28722 invoked by uid 49493); 25 Aug 2003 15:58:48 -0000 Original-Received: from tom@kednos.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.6/5.0):. Processed in 19.298322 secs); 25 Aug 2003 15:58:48 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 25 Aug 2003 15:58:29 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HK600IKUN1G6I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 25 Aug 2003 11:58:28 -0400 (EDT) Original-Received: from freja.kednos.com (mail.kednos.com [206.55.236.242]) by emroute3.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HK600LGJN14Z4@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 25 Aug 2003 11:58:21 -0400 (EDT) Original-Received: from 206-55-236-250.static.mbay.net (206.55.236.250) by freja.kednos.com (V5.1-15H, OpenVMS V7.3 Alpha); Mon, 25 Aug 2003 08:58:15 -0700 (PDT) In-reply-to: <200308251517.LAA0000000822@doctor.zk3.dec.com> Original-To: Tru64 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:5192 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5192 Thanks to Tom Blinn >-----Original Message----- >From: Dr Thomas.Blinn@HP.com [mailto:tpb@doctor.zk3.dec.com] >Sent: Monday, August 25, 2003 8:18 AM >To: Tom Linden >Subject: Re: admin lock on login > > > >> Apparently my passwd expired and upon entering the new passwd the second >> time I must have made a typo and now can't login. Moreover, >this was done >> from telnet (Putty on W2K) and it simply blows the screen away >> >> I tried usermod to remove lock, and... >> >> # usermod -x administrative_lock_applied=0 tom >> useradd: Am /etc/.AM_is_running Account Manager lock file has >been detected. >> This may indicate one of the following process with >> process-ID 924 is using the Account Manager databases. >> >> dxaccounts useradd usermod userdel >> groupadd groupmod groupdel >> >> Please remove the lock file if the process does not exist >> and re-start the Account Manager. >> >> >> OK, the process does not exist so, >> 1. How do I find the lock file so I can remove it? >> 2. How do I restart the Account Manager? >> >> This seems unnecessarily complicated to me. Moreover, having mistakenly >> reentered the new password shouldn't have triggered such a >series of events. > >The full path to the file is in the message: > > /etc/.AM_is_running > > There is only one line in the file, and it is the process id referred to > in the original message, > # more /etc/.AM_is_running > 924 > # Right, so it's probably safe to just completely remove the file and re-issue the command. Unfortunately, the various "account management" utilities need to go off and muck with things in the file system, and there is no simple way to provide a good interlock mechanism, especially because you can use them over the network in some cases. And although some of them are CLIs so they tend to get in, do their work, and exit, there is the GUI account manager utility, and once it's started, at least some people tend to leave it running. And if it's running, you don't want to let someone else start up a copy, because then you get into messy cases where "what you see isn't what's on disk". So the people who implemented this stuff (not me, I had nothing to do with it) came up with the idea of having a lock file. They used to just tell you the file was there and never give the full path -- that's been fixed, but there is still no automated way to verify that it's safe to remove the file and start up a new instance of the GUI or alternatively to issue the command line commands. Yes, it's ugly, but it's not likely to change, ever, since there are few people left working on the product who would be willing to risk breaking it in trying to make it cleaner.>Unfortunately, in some cases, if one of the applications that uses the >file gets terminated abnormally, it may not clean up the file. So you >have to get rid of it manually. > >You're right, it shouldn't be that hard. > >The account manager you want to restart is probably just the "usermod" >command line command you were trying to use. > >Tom --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.511 / Virus Database: 308 - Release Date: 8/18/2003