Solved

digital unix 4.0d

Posted on 2000-02-14
6
527 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
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Expert Comment

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

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now