* User troubles
@ 1999-08-30 4:00 Richard Moore
1999-08-30 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-30 4:00 ` Jim Granfield
0 siblings, 2 replies; 6+ messages in thread
From: Richard Moore @ 1999-08-30 4:00 UTC (permalink / raw)
I have been having trouble adding/removing users. The error that I get is
The password and group files are currently locked by another user.
Please try again later.
Error, exiting useradd /usr/sbin/adduser. Check /etc/passwd.
There is no one using these files. I have downed the server and rebooted
it, this didn't work.
Any Suggestions?
Richard Moore
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User troubles
1999-08-30 4:00 User troubles Richard Moore
1999-08-30 4:00 ` Ed Wensell III aka THE StormRaiser
@ 1999-08-30 4:00 ` Jim Granfield
1 sibling, 0 replies; 6+ messages in thread
From: Jim Granfield @ 1999-08-30 4:00 UTC (permalink / raw)
To: Richard Moore
Check for "etc/.AM_is_running" and delete it as root.
hth
jim
Richard Moore wrote:
>
> I have been having trouble adding/removing users. The error that I get is
>
> The password and group files are currently locked by another user.
> Please try again later.
> Error, exiting useradd /usr/sbin/adduser. Check /etc/passwd.
>
> There is no one using these files. I have downed the server and rebooted
> it, this didn't work.
>
> Any Suggestions?
> Richard Moore
--
Jim Granfield
jgranfield@map.com
The Kimball Companies
East Longmeadow, Ma 01028
(413) 525-2400
PEG # 1998051103
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User troubles
1999-08-30 4:00 User troubles Richard Moore
@ 1999-08-30 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-30 4:00 ` Richard Moore
1999-08-30 4:00 ` Jim Granfield
1 sibling, 1 reply; 6+ messages in thread
From: Ed Wensell III aka THE StormRaiser @ 1999-08-30 4:00 UTC (permalink / raw)
This is a fairly common problem. It's in the D/T64 UNIX FAQ:
M18. Why does dxaccounts tells me that the password and group
files are locked?
If a dxaccounts process exits ungracefully (e.g. if a kill -9
is used) then it sometimes leaves a file in /etc called
.AM_is_running. Deleting this file will solve the problem.
[Ian Lloyd]
Have fun!
Richard Moore wrote:
>
> I have been having trouble adding/removing users. The error that I get is
>
> The password and group files are currently locked by another user.
> Please try again later.
> Error, exiting useradd /usr/sbin/adduser. Check /etc/passwd.
>
> There is no one using these files. I have downed the server and rebooted
> it, this didn't work.
>
> Any Suggestions?
> Richard Moore
--
Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User troubles
1999-08-30 4:00 ` Ed Wensell III aka THE StormRaiser
@ 1999-08-30 4:00 ` Richard Moore
1999-08-31 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-31 4:00 ` J�rgen Schr�der
0 siblings, 2 replies; 6+ messages in thread
From: Richard Moore @ 1999-08-30 4:00 UTC (permalink / raw)
Thanks for the help on this. It almost worked. I now can add users.
However when I go to removeuser I get:
Is this the entry you want to delete (y/n)? y
Working ...userdel: Password entry is corrupted. Please repair the password
file
and then run Account Manager
User (alee) was not removed.
We have tried rebuilding the user file, resetting the server rebuilding
kernel, no joy.
Thanks In advance
Richard
Ed Wensell III aka THE StormRaiser wrote in message
<37CABED3.606F@pstcc.cc.tn.us.net>...
>This is a fairly common problem. It's in the D/T64 UNIX FAQ:
>
> M18. Why does dxaccounts tells me that the password and group
> files are locked?
>
> If a dxaccounts process exits ungracefully (e.g. if a kill -9
> is used) then it sometimes leaves a file in /etc called
> .AM_is_running. Deleting this file will solve the problem.
>
> [Ian Lloyd]
>
>Have fun!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User troubles
1999-08-30 4:00 ` Richard Moore
1999-08-31 4:00 ` Ed Wensell III aka THE StormRaiser
@ 1999-08-31 4:00 ` J�rgen Schr�der
1 sibling, 0 replies; 6+ messages in thread
From: J�rgen Schr�der @ 1999-08-31 4:00 UTC (permalink / raw)
Richard Moore <rmoore@racm.com> wrote:
: Is this the entry you want to delete (y/n)? y
: Working ...userdel: Password entry is corrupted. Please repair the password
: file
: and then run Account Manager
: User (alee) was not removed.
: We have tried rebuilding the user file, resetting the server rebuilding
: kernel, no joy.
Dont use the nonsense gui/script stuff just use vipw
$ man vipw
vipw(8) vipw(8)
NAME
vipw - Edits the /etc/passwd file
SYNOPSIS
/usr/sbin/vipw
DESCRIPTION
You use the vipw command to edit the /etc/passwd file with the editor
defined in the EDITOR environment variable. If the variable is not set,
the default editor is vi.
The vipw command performs basic consistency checks on the edited file. If
a hashed indexed passwd existed previously, the vipw command uses the
mkpasswd command to create recreate it.
[..]
EXAMPLE
To edit the /etc/passwd file, type the following command and add the
required line entry:
vipw
Juergen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: User troubles
1999-08-30 4:00 ` Richard Moore
@ 1999-08-31 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-31 4:00 ` J�rgen Schr�der
1 sibling, 0 replies; 6+ messages in thread
From: Ed Wensell III aka THE StormRaiser @ 1999-08-31 4:00 UTC (permalink / raw)
Is Enhanced Security (C2) enabled (/usr/sbin/rcmgr get SECURITY BASE)?
According to the removeuser man page (which uses userdel for the actual
delete):
Security Note
If you have enhanced security installed on your
system, you should use the dxaccounts command
to remove users. See the Security manual and
the dxaccounts(8X) reference page for more
information.
Also, if you have enhanced security enabled, dxaccounts will only let
you "retire" accounts, not delete (C2 specification, recycling of
UIDs/Usernames not allowed. Man page is slightly misleading). If you
really want to remove an account, the only way will be to do it manually
(as another poster states). From the DUNIX 4.0d docs:
(http://www.unix.digital.com/faqs/publications/pub_page/doc_list.html)
10.4.2 Removing a User Account Manually
To manually remove a user account from your system:
1.Remove the user's files and directories.
2.Remove the user's entry from the group file.
3.Remove the user's entry from the passwd file.
4.Remove the user's /usr/spool/mail/username file.
The rest of that section describes how to do each step. After you remove
the user from the passwd file on an Enhanced Security system, you will
need to run something to get the protected user database in synch. I do
not remember what it is (man prpasswd). Although, as long as the user's
directory/shell definition is gone, that should be enough. I do know the
passwd synch/update is done automagically during reboots... :)
Kinda wish D/T64 UNIX had a "Slightly Enhanced Security" mode.
Basically, shadow passwords with user delete capability... :)
Richard Moore wrote:
>
> Thanks for the help on this. It almost worked. I now can add users.
> However when I go to removeuser I get:
>
> Is this the entry you want to delete (y/n)? y
> Working ...userdel: Password entry is corrupted. Please repair the password
> file
> and then run Account Manager
>
> User (alee) was not removed.
>
> We have tried rebuilding the user file, resetting the server rebuilding
> kernel, no joy.
>
> Thanks In advance
> Richard
--
Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-08-31 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-30 4:00 User troubles Richard Moore
1999-08-30 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-30 4:00 ` Richard Moore
1999-08-31 4:00 ` Ed Wensell III aka THE StormRaiser
1999-08-31 4:00 ` J�rgen Schr�der
1999-08-30 4:00 ` Jim Granfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox