[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9804.0. "URGENT! Passwd file locked !!!!!!!" by TRN02::FRASSINO () Tue May 13 1997 14:19

    Hi all,
    due to an incorrect exit from dxaccounts, I receive always the
    following error:
    
    The password and group files are currently locked by another user.
    Please try again later.
    
    I suppose somewhere  a locking file is created, but I cannot figure out
    where. I suppose this since a reboot doesn't solve the problem.
    
    Where have I to find this 'passwd.lock' or 'group.lock' file?
    Is this the correct approach to the problem?
    
    Thanks in advance!( My server needs your help !!!)
    
    			Pierpa
T.RTitleUserPersonal
Name
DateLines
9804.1NNTPD::"[email protected]"Ann MajeskeTue May 13 1997 18:526
I'm not sure what locking method dxaccounts uses, but you could try
looking for passwd:t, passwd:o, group:t, and/or group:o.  Of course,
the obvious is to look for anything *passwd* and/or *group*.  Just make sure 
that you keep a copy of anything you delete (under another name), just in
case it wasn't the lock file ;^)
[Posted by WWW Notes gateway]
9804.2CSC64::BLAYLOCKIf at first you doubt,doubt again.Wed May 14 1997 13:5930

Try looking for the file:  /etc/.AM_is_running

This file is created by the new /usr/shlib/libaccmgr.so file from
the Patch ID: OSF405DX-400005 (this is the 4.0a variant).

From the readme:


"PROBLEM: (QAR 39332)             (Patch ID: OSF405DX-400005)                   
********                                                                       
Running two conncurrent instances of the account management commands is not    
supported. This restriction applies to the dxaccounts graphical user interface 
and the useradd, usermod, userdel, groupadd, groupmod, and groupdel commands.  
This restriction was release noted for Digital UNIX V4.0 and it is now enforce 
in the software.                                                               
                                                                               
In order to prevent concurrent access, each account management command creates 
a lock file at startup called /etc/.AM_is_running. If any of the commands are  
terminated abnormally (e.g. kill -9) then this lock file will not be deleted   
and future command invocations will refuse to run with the error message:      
                                                                              
 The password and group files are currently locked by another user.           
 Please try again later.                                                      
                                                                              
This message means that the account database files are either legitimately    
locked OR one of the commands terminated abnormally leaving an                
/etc/.AM_is_running lock file.  If no other root users are using the account  
management commands, simply delete the lock file. "                            
9804.3GERUND::WOLFEI'm going to huff, and puff, and blow your house downWed May 14 1997 15:0529
What version of the OS are you running and have you installed
any patch kits? 

The V4.0 version of dxaccounts creates that standard lock files:
	/etc/ptmp is the lock file for /etc/passwd
	/var/yp/src/passwd.ptmp is the lock file NIS
These are the standard lock files used by vipwd and the rest
of the passwd file related commands. 

In a patch kit, we additionally introduced dxaccounts specific 
lock file that serializes access to the passwd and group files
for the dxaccounts gui and the cli commands (useradd, userdel, etc). 
That lock file is /etc/.AM_is_running and is described in the 
patch kit release notes. 

If you find a case where dxaccounts is crashing and leaving lock 
files *please* qar it. It might already be fixed in a patch kit
as well so you can check there and see if the list of fixed
bugs looks like it applies to you. 

When entering a bug report please provide the following info:

	- what operation you performed that led to the crash
	- are you running NIS
	- are you running C2. 

Thanks. 

			pete
9804.4Ok, /etc/.AM_is_not_running now.TRN02::FRASSINOFri May 16 1997 04:555
    Hi,
    thanks to all for the suggestions !!
    I deleted /etc/.AM_is_running and all is running again !!!!!!!
    
    					*8-) Pierpa