Solved

digital unix 4.0d

Posted on 2000-02-14
6
535 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…

773 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