Solved

digital unix 4.0d

Posted on 2000-02-14
6
549 Views
Last Modified: 2013-12-05
I can't "adduser".
diagnosis is
"The password and group files are currently locked by another user.
Please try again later"
the problem began, as soon as I've
installed enhanced security. I've started
dxaccounts after that, and this program hanged up system.
reboot doesn't help.

0
Comment
Question by:kako
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:anil_25
ID: 2525676
There is some file created which needs to be deleted, after which it works ok. We faced this problem. Try removing /etc/passwd.pag but make it's copy first(In case..) BTW I will search my pads if i get that filename.

Cheers
Anil
0
 

Author Comment

by:kako
ID: 2526270
I did so but it doesn't help
so it seems this file is located somewhere else, not in /ETC
0
 

Expert Comment

by:mckessonhbocfrance
ID: 2526607
I have a similar problem, when you try to directly modify /etc/passwd vi vipw, there is another related error: "vipw: you mangled the temp file, /etc/passwd unchanged".

I guess another file than /etc/passwd* should be zeroed, but I have no clue.

--Eric
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:mckessonhbocfrance
ID: 2526608
mckessonhbocfrance changed the proposed answer to a comment
0
 
LVL 21

Expert Comment

by:tfewster
ID: 2537177
When you made your machine a secure system, passwords will have been stripped out of /etc/passwd and put into /etc/shadow; The standard "adduser" utility should have been upgraded to handle this, but it sounds as if it hasn't. Similarly, dxaccounts may need patching.

Until you resolve the problem you can create users manually by:
1) Edit /etc/passwd (preferably with vipw, or make a backup of /etc/passwd first!); Copy a line for an existing user in the same group; Modify the username, user-id (must be unique) and home directory.

2) Check you can login on another terminal; If you can't, restore the /etc/passwd from the backup you edited

3) Use passwd to set a password for the new user

4) Create a home directory for the new user, either manually (copy standard startup files from /etc/skel) OR by copying an existing user (cd /home; cp -r olduser newuser); set permissions on the new users directory with chown -R newuser newuser (Check that the ownership of files in the newuser directory is similar to that in olduser; Some files may need to be owned by root)
0
 

Accepted Solution

by:
Gavin_Smith earned 100 total points
ID: 2537342
Dxaccounts creates a lock file :-

/etc/.AM_is_running

If you didn't manage to exit successfuly (you system hung?) it
won't have been deleted. You can safely remove it (assuming nobody
is running dxaccounts) with :-

rm /etc/.AM_is_running

Hope this helps...
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to clone solaris 10 machine 33 190
Solaris 4.1.3 cloning and booting 13 94
bash while loop reading input from data section in script 7 72
Bash Script to Analyze Oracle Schemas 11 128
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question