?
Solved

digital unix 4.0d

Posted on 2000-02-14
6
Medium Priority
?
559 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 400 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

765 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